mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Register the saver directly on create
This commit is contained in:
parent
450a471c42
commit
7a046dd446
1 changed files with 10 additions and 0 deletions
|
|
@ -56,6 +56,16 @@ class CreateSaver(Creator):
|
|||
|
||||
self._imprint(saver, instance_data)
|
||||
|
||||
# Register the CreatedInstance
|
||||
instance = CreatedInstance(
|
||||
family=self.family,
|
||||
subset_name=subset_name,
|
||||
instance_data=instance_data,
|
||||
creator=self)
|
||||
self._add_instance_to_context(instance)
|
||||
|
||||
return instance
|
||||
|
||||
def collect_instances(self):
|
||||
|
||||
comp = get_current_comp()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue