mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
Fix bug when trying to delete an opening object that was already deleted
This commit is contained in:
@@ -736,7 +736,7 @@ class OverrideDelete(bpy.types.Operator):
|
|||||||
bpy.data.objects.remove(obj)
|
bpy.data.objects.remove(obj)
|
||||||
|
|
||||||
for opening in context.scene.BIMModelProperties.openings:
|
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)
|
bpy.data.objects.remove(opening.obj)
|
||||||
tool.Model.purge_scene_openings()
|
tool.Model.purge_scene_openings()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user