mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
b86dab2a76
Probably have met this issue before - https://i.imgur.com/EOCSGg2.png It occurred when you would remove e.g. IfcBuildingStorey's (or other aggregate's) collection from outliner. Deletion operator removes objects first and removing aggregate's main object is automatically removing it's collection. Then it would start removing collections and will break meeting an invalid collection. Most of the times it was scary but harmless since all collections are probably removed either way but it's critical for batch removal as it would be never finished, possibly leaving unlinked ifc data (e.g. representations and it's items) that's not removed completely until batch removal is finalized. Traceback: Error: Python: Traceback (most recent call last): File "\blenderbim\bim\ifc.py", line 360, in execute_ifc_operator result = getattr(operator, "_execute")(context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "\blenderbim\bim\module\geometry\operator.py", line 720, in _execute bpy.data.collections.remove(collection) ReferenceError: StructRNA of type Collection has been removed