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:
Milan Kolar 2023-07-06 09:50:51 +02:00 committed by GitHub
commit 5f17223c27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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