Fix #3066. Regression crash when deleting openings.

This commit is contained in:
Dion Moult
2023-04-27 22:23:42 +10:00
parent d5c837b517
commit df9a33a2c8
@@ -84,6 +84,7 @@ class Geometry(blenderbim.core.tool.Geometry):
bpy.data.collections.remove(obj.users_collection[0]) bpy.data.collections.remove(obj.users_collection[0])
if getattr(element, "FillsVoids", None): if getattr(element, "FillsVoids", None):
bpy.ops.bim.remove_filling(filling=element.id()) bpy.ops.bim.remove_filling(filling=element.id())
if element.is_a("IfcOpeningElement"): if element.is_a("IfcOpeningElement"):
if element.HasFillings: if element.HasFillings:
for rel in element.HasFillings: for rel in element.HasFillings: