mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
instance toggle works with uuid key not with id
This commit is contained in:
parent
350fc49978
commit
23ebe56de6
1 changed files with 2 additions and 2 deletions
|
|
@ -15,11 +15,11 @@ CREATE_PATH = os.path.join(PLUGINS_DIR, "tvpaint", "create")
|
|||
|
||||
|
||||
def on_instance_toggle(instance, old_value, new_value):
|
||||
instance_id = instance.data["id"]
|
||||
instance_id = instance.data["uuid"]
|
||||
found_idx = None
|
||||
current_instances = pipeline.list_instances()
|
||||
for idx, workfile_instance in enumerate(current_instances):
|
||||
if workfile_instance["id"] == instance_id:
|
||||
if workfile_instance["uuid"] == instance_id:
|
||||
found_idx = idx
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue