Skip to content

Commit

Permalink
Handle ReferenceError: StructRNA of type Collection has been removed
Browse files Browse the repository at this point in the history
  • Loading branch information
vanous committed Jul 23, 2024
1 parent faf2631 commit ee81da6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ def load_mvr(dmx, file_name):
create_mvr_props(aux_directory, aux_type)
layer_collect.children.link(aux_directory)
for uid, auxcollect in auxData.items():
if auxcollect is None:
DMX_Log.log.error("auxData item (auxcollect) 'ReferenceError: StructRNA of type Collection has been removed', handling gracefully.")
# this seems to be related to garbage collection as this happens if many objects are created from MVR
continue
aux = data_collect.get(auxcollect.name)
if aux and aux.name not in aux_directory.children:
aux_directory.children.link(aux)
Expand Down

0 comments on commit ee81da6

Please sign in to comment.