mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #5202 from ynput/bugfix/OP-6245_Bug-3dsmax--Publisher-Instances-dont-hold-its-EnabledDisabled-states-when-Publisher-reopened-again
This commit is contained in:
commit
5f17223c27
1 changed files with 8 additions and 0 deletions
|
|
@ -78,6 +78,14 @@ def read(container) -> dict:
|
|||
value.startswith(JSON_PREFIX):
|
||||
with contextlib.suppress(json.JSONDecodeError):
|
||||
value = json.loads(value[len(JSON_PREFIX):])
|
||||
|
||||
# default value behavior
|
||||
# convert maxscript boolean values
|
||||
if value == "true":
|
||||
value = True
|
||||
elif value == "false":
|
||||
value = False
|
||||
|
||||
data[key.strip()] = value
|
||||
|
||||
data["instance_node"] = container.Name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue