From 22579426768ffd9e5b5899918d66150a64b01c7e Mon Sep 17 00:00:00 2001 From: Sigma Dimensions <79010126+myoualid@users.noreply.github.com> Date: Sat, 21 Jan 2023 00:51:46 +0100 Subject: [PATCH] BBIM: When adding doors to a wall, maintain the wall as the active object. This allows adding multiple doors smoothly. --- src/blenderbim/blenderbim/bim/module/model/product.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/module/model/product.py b/src/blenderbim/blenderbim/bim/module/model/product.py index f8d5485cd4..e3f80872ac 100644 --- a/src/blenderbim/blenderbim/bim/module/model/product.py +++ b/src/blenderbim/blenderbim/bim/module/model/product.py @@ -168,7 +168,10 @@ class AddConstrTypeInstance(bpy.types.Operator): tool.Ifc.run("system.assign_port", element=element, port=new_port) tool.Ifc.run("geometry.edit_object_placement", product=new_port, matrix=mat, is_si=True) - select_and_activate_single_object(context, obj) + if ifc_class == "IfcDoorType" and len(context.selected_objects) >= 1: + pass + else: + select_and_activate_single_object(context, obj) return {"FINISHED"} @staticmethod