Fix bug when trying to delete an opening object that was already deleted

This commit is contained in:
Gorgious56
2025-01-27 12:56:27 +01:00
parent c4dbbe85fc
commit 378086ac7b
@@ -736,7 +736,7 @@ class OverrideDelete(bpy.types.Operator):
bpy.data.objects.remove(obj)
for opening in context.scene.BIMModelProperties.openings:
if not tool.Ifc.get_entity(opening.obj):
if opening.obj is not None and not tool.Ifc.get_entity(opening.obj):
bpy.data.objects.remove(opening.obj)
tool.Model.purge_scene_openings()