mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
converting functions for overrides use new implemented conversions
This commit is contained in:
parent
08554af5fd
commit
e804c47214
1 changed files with 4 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ def convert_gui_data_to_overrides(data, first=True):
|
|||
output = {}
|
||||
if first:
|
||||
output["__override_version__"] = OVERRIDE_VERSION
|
||||
data = convert_gui_data_with_metadata(data, ("environments",))
|
||||
|
||||
if METADATA_KEY in data:
|
||||
metadata = data.pop(METADATA_KEY)
|
||||
|
|
@ -79,6 +80,9 @@ def convert_overrides_to_gui_data(data, first=True):
|
|||
if not data or not isinstance(data, dict):
|
||||
return data
|
||||
|
||||
if first:
|
||||
data = convert_data_to_gui_data(data)
|
||||
|
||||
output = {}
|
||||
if M_OVERRIDEN_KEY in data:
|
||||
groups = data.pop(M_OVERRIDEN_KEY)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue