mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
initial value has same type as output type so settings does not recognize initial values as changed
This commit is contained in:
parent
e43103b97d
commit
fb47622202
1 changed files with 11 additions and 0 deletions
|
|
@ -434,8 +434,19 @@ class DictMutableKeysEntity(EndpointEntity):
|
|||
if using_values_from_state:
|
||||
if _settings_value is NOT_SET:
|
||||
initial_value = NOT_SET
|
||||
|
||||
elif self.store_as_list:
|
||||
new_initial_value = []
|
||||
for key, value in _settings_value:
|
||||
if key in initial_value:
|
||||
new_initial_value.append(key, initial_value.pop(key))
|
||||
|
||||
for key, value in initial_value.items():
|
||||
new_initial_value.append(key, value)
|
||||
initial_value = new_initial_value
|
||||
else:
|
||||
initial_value = _settings_value
|
||||
|
||||
self.initial_value = initial_value
|
||||
|
||||
def _convert_to_regex_valid_key(self, key):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue