mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 22:02:15 +01:00
fix autocreator
This commit is contained in:
parent
56028e2dbe
commit
9eda0ff797
1 changed files with 2 additions and 6 deletions
|
|
@ -65,12 +65,10 @@ class MyAutoCreator(AutoCreator):
|
|||
variant, task_name, asset_doc, project_name, host_name
|
||||
))
|
||||
|
||||
existing_instance = CreatedInstance(
|
||||
new_instance = CreatedInstance(
|
||||
self.family, subset_name, data, self
|
||||
)
|
||||
pipeline.HostContext.add_instance(
|
||||
existing_instance.data_to_store()
|
||||
)
|
||||
self._add_instance_to_context(new_instance)
|
||||
|
||||
elif (
|
||||
existing_instance.data["asset"] != asset_name
|
||||
|
|
@ -82,5 +80,3 @@ class MyAutoCreator(AutoCreator):
|
|||
)
|
||||
existing_instance.data["asset"] = asset_name
|
||||
existing_instance.data["task"] = task_name
|
||||
|
||||
self._add_instance_to_context(existing_instance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue