mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #5878 from ynput/bugfix/3dsmax-ayon-settings-convertion-fix
AYON 3dsMax settings: 'ValidateAttributes' settings converte only if available
This commit is contained in:
commit
4bafde2641
1 changed files with 8 additions and 7 deletions
|
|
@ -641,13 +641,14 @@ def _convert_3dsmax_project_settings(ayon_settings, output):
|
|||
ayon_max["PointCloud"]["attribute"] = new_point_cloud_attribute
|
||||
# --- Publish (START) ---
|
||||
ayon_publish = ayon_max["publish"]
|
||||
try:
|
||||
attributes = json.loads(
|
||||
ayon_publish["ValidateAttributes"]["attributes"]
|
||||
)
|
||||
except ValueError:
|
||||
attributes = {}
|
||||
ayon_publish["ValidateAttributes"]["attributes"] = attributes
|
||||
if "ValidateAttributes" in ayon_publish:
|
||||
try:
|
||||
attributes = json.loads(
|
||||
ayon_publish["ValidateAttributes"]["attributes"]
|
||||
)
|
||||
except ValueError:
|
||||
attributes = {}
|
||||
ayon_publish["ValidateAttributes"]["attributes"] = attributes
|
||||
|
||||
output["max"] = ayon_max
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue