Merge pull request #1274 from pypeclub/fix/AE_remove_orphaned_instances

AE remove orphaned instance from workfile
This commit is contained in:
Milan Kolar 2021-04-08 09:58:40 +02:00 committed by GitHub
commit 39f5103d4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 +