From a6c2c5d1bb70fb905a2090704e7fe1d5d1fb9309 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 ab9ced3d1f..9c9f464ebf 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: