mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
removing older instance attributes
This commit is contained in:
parent
7d099062d0
commit
1cbcd66da8
1 changed files with 12 additions and 0 deletions
|
|
@ -208,6 +208,12 @@ class NukeCreator(NewCreator):
|
|||
|
||||
def collect_instances(self):
|
||||
cached_instances = _collect_and_cache_nodes(self)
|
||||
attr_def_keys = {
|
||||
attr_def.key
|
||||
for attr_def in self.get_instance_attr_defs()
|
||||
}
|
||||
attr_def_keys.discard(None)
|
||||
|
||||
for (node, data) in cached_instances[self.identifier]:
|
||||
created_instance = CreatedInstance.from_existing(
|
||||
data, self
|
||||
|
|
@ -215,6 +221,12 @@ class NukeCreator(NewCreator):
|
|||
created_instance.transient_data["node"] = node
|
||||
self._add_instance_to_context(created_instance)
|
||||
|
||||
for key in (
|
||||
set(created_instance["creator_attributes"].keys())
|
||||
- attr_def_keys
|
||||
):
|
||||
created_instance["creator_attributes"].pop(key)
|
||||
|
||||
def update_instances(self, update_list):
|
||||
for created_inst, _changes in update_list:
|
||||
instance_node = created_inst.transient_data["node"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue