From 589262269287792d536b60fb7151da11c6a351f9 Mon Sep 17 00:00:00 2001 From: Robin Quint Date: Thu, 7 Aug 2025 17:13:18 +0200 Subject: [PATCH] fixed directly flipping a product type throwing an exception --- src/bonsai/bonsai/bim/module/model/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/model/product.py b/src/bonsai/bonsai/bim/module/model/product.py index 0633274bbb..2023c12c66 100644 --- a/src/bonsai/bonsai/bim/module/model/product.py +++ b/src/bonsai/bonsai/bim/module/model/product.py @@ -705,7 +705,7 @@ class TrueMirrorElements(bpy.types.Operator, tool.Ifc.Operator): active_context = tool.Geometry.get_active_representation_context(obj) - if type_element: + if type_element and element.id() != type_element.id(): # obj has a type, use / create inverted type and assign it self.assign_inverted_type(element) else: