mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
pop keys that are already set
This commit is contained in:
parent
91ee0777a3
commit
2e98795ad0
1 changed files with 8 additions and 0 deletions
|
|
@ -408,6 +408,14 @@ class CreatedInstance:
|
|||
version = 1
|
||||
self._data["version"] = version
|
||||
|
||||
# Pop from source data all keys that are defined in `_data` before
|
||||
# this moment and through their values away
|
||||
# - they should be the same and if are not then should not change
|
||||
# already set values
|
||||
for key in self._data.keys():
|
||||
if key in data:
|
||||
data.pop(key)
|
||||
|
||||
# Stored creator specific attribute values
|
||||
# {key: value}
|
||||
creator_values = copy.deepcopy(orig_creator_attributes)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue