mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Fix #3086.
This commit is contained in:
@@ -217,8 +217,8 @@ class Drawing(blenderbim.core.tool.Drawing):
|
|||||||
@classmethod
|
@classmethod
|
||||||
def delete_drawing_elements(cls, elements):
|
def delete_drawing_elements(cls, elements):
|
||||||
for element in elements:
|
for element in elements:
|
||||||
ifcopenshell.api.run("root.remove_product", tool.Ifc.get(), product=element)
|
|
||||||
obj = tool.Ifc.get_object(element)
|
obj = tool.Ifc.get_object(element)
|
||||||
|
ifcopenshell.api.run("root.remove_product", tool.Ifc.get(), product=element)
|
||||||
if obj:
|
if obj:
|
||||||
obj_data = obj.data
|
obj_data = obj.data
|
||||||
bpy.data.objects.remove(obj)
|
bpy.data.objects.remove(obj)
|
||||||
|
|||||||
Reference in New Issue
Block a user