ahh, forgot that representation is already removed at this point
This commit is contained in:
Andrej730
2025-02-24 15:00:55 +05:00
parent a81b4a7dbb
commit 76277c35d2
+3 -1
View File
@@ -269,7 +269,9 @@ 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.Ifc.get_entity_by_id(
tool.Geometry.get_mesh_props(data).ifc_definition_id
):
tool.Blender.remove_data_block(data)
if is_spatial: