From 7d040c21ee753ad6a2feb8556ebf2ccbaf833856 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 24 Feb 2025 14:56:20 +0500 Subject: [PATCH] Fix for 365393aa07 ahh, forgot that representation is already removed at this point --- src/bonsai/bonsai/tool/geometry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/tool/geometry.py b/src/bonsai/bonsai/tool/geometry.py index dd14e9791a..3f53ac94f2 100644 --- a/src/bonsai/bonsai/tool/geometry.py +++ b/src/bonsai/bonsai/tool/geometry.py @@ -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: