BBIM: When adding doors to a wall, maintain the wall as the active object.

This allows adding multiple doors smoothly.
This commit is contained in:
Sigma Dimensions
2023-01-21 00:51:46 +01:00
parent a5ca7c540f
commit 2257942676
@@ -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