mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 04:04:00 +00:00
Fix for 365393aa07
ahh, forgot that representation is already removed at this point
This commit is contained in:
@@ -269,7 +269,7 @@ class Geometry(bonsai.core.tool.Geometry):
|
||||
ifcopenshell.api.run("root.remove_product", tool.Ifc.get(), product=element)
|
||||
|
||||
data = obj.data
|
||||
if data and tool.Geometry.get_data_representation(data):
|
||||
if tool.Geometry.has_mesh_properties(data) and tool.Geometry.get_mesh_props(data).ifc_definition_id:
|
||||
tool.Blender.remove_data_block(data)
|
||||
|
||||
if is_spatial:
|
||||
|
||||
Reference in New Issue
Block a user