From 2a1d9461f2ab7956c842c5b0f3381cd9cb1d9406 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 7fd0fd2704..148294aa0d 100644 --- a/src/bonsai/bonsai/bim/module/model/product.py +++ b/src/bonsai/bonsai/bim/module/model/product.py @@ -702,7 +702,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: