mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
raw json cares about metadata during item_value method
This commit is contained in:
parent
2bb03726c2
commit
6881740e52
1 changed files with 9 additions and 8 deletions
|
|
@ -1328,17 +1328,18 @@ class RawJsonWidget(QtWidgets.QWidget, InputObject):
|
|||
output = {}
|
||||
for key, value in value.items():
|
||||
output[key.upper()] = value
|
||||
|
||||
if self.is_environ:
|
||||
output[METADATA_KEY] = {
|
||||
"environments": {
|
||||
self.env_group_key: list(output.keys())
|
||||
}
|
||||
}
|
||||
|
||||
return output
|
||||
|
||||
def config_value(self):
|
||||
value = self.item_value()
|
||||
if self.is_environ:
|
||||
value[METADATA_KEY] = {
|
||||
"environments": {
|
||||
self.env_group_key: list(value.keys())
|
||||
}
|
||||
}
|
||||
return {self.key: value}
|
||||
return {self.key: self.item_value()}
|
||||
|
||||
|
||||
class ListItem(QtWidgets.QWidget, SettingObject):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue