mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
fix #3063
This commit is contained in:
committed by
Dion Moult
parent
0078d691d3
commit
7100a7fa8e
@@ -415,6 +415,10 @@ class OverrideDelete(bpy.types.Operator):
|
||||
if self.is_batch:
|
||||
ifcopenshell.util.element.batch_remove_deep2(tool.Ifc.get())
|
||||
for obj in context.selected_objects:
|
||||
pset = ifcopenshell.util.element.get_pset(tool.Ifc.get_entity(obj), "BBIM_Array")
|
||||
if pset:
|
||||
self.report({"INFO"}, "This element is part of an IFC array, can't be deleted individually. Remove the array if you want to proceed.")
|
||||
return {"FINISHED"}
|
||||
if tool.Ifc.get_entity(obj):
|
||||
tool.Geometry.delete_ifc_object(obj)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user