Fix issue not cleaning up the mesh after 76277c35d2

This commit is contained in:
Andrej730
2025-02-24 19:30:40 +05:00
parent 899ada0019
commit 0bd4451ce9
+3 -2
View File
@@ -269,8 +269,9 @@ class Geometry(bonsai.core.tool.Geometry):
ifcopenshell.api.run("root.remove_product", tool.Ifc.get(), product=element)
data = obj.data
if tool.Geometry.has_mesh_properties(data) and tool.Ifc.get_entity_by_id(
tool.Geometry.get_mesh_props(data).ifc_definition_id
if (
tool.Geometry.has_mesh_properties(data)
and tool.Ifc.get_entity_by_id(tool.Geometry.get_mesh_props(data).ifc_definition_id) is None
):
tool.Blender.remove_data_block(data)