mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge pull request #1274 from pypeclub/fix/AE_remove_orphaned_instances
AE remove orphaned instance from workfile
This commit is contained in:
commit
39f5103d4e
1 changed files with 6 additions and 0 deletions
|
|
@ -46,6 +46,12 @@ class CollectAERender(abstract_collect_render.AbstractCollectRender):
|
|||
"Please recreate instance.")
|
||||
item_id = inst["members"][0]
|
||||
work_area_info = self.stub.get_work_area(int(item_id))
|
||||
|
||||
if not work_area_info:
|
||||
self.log.warning("Orphaned instance, deleting metadata")
|
||||
self.stub.remove_instance(int(item_id))
|
||||
continue
|
||||
|
||||
frameStart = work_area_info.workAreaStart
|
||||
|
||||
frameEnd = round(work_area_info.workAreaStart +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue