mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
maxscript's conversion of bool to python
This commit is contained in:
parent
d4da7d614b
commit
5a228d4d51
1 changed files with 7 additions and 1 deletions
|
|
@ -78,7 +78,13 @@ def read(container) -> dict:
|
||||||
value.startswith(JSON_PREFIX):
|
value.startswith(JSON_PREFIX):
|
||||||
with contextlib.suppress(json.JSONDecodeError):
|
with contextlib.suppress(json.JSONDecodeError):
|
||||||
value = json.loads(value[len(JSON_PREFIX):])
|
value = json.loads(value[len(JSON_PREFIX):])
|
||||||
data[key.strip()] = value
|
if key.strip() == "active":
|
||||||
|
if value == "true":
|
||||||
|
data[key.strip()] = True
|
||||||
|
else:
|
||||||
|
data[key.strip()] = False
|
||||||
|
else:
|
||||||
|
data[key.strip()] = value
|
||||||
|
|
||||||
data["instance_node"] = container.Name
|
data["instance_node"] = container.Name
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue