From 5913fe881ee0b9d50dec054d9181ed33001bf5b9 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 13 Nov 2024 11:30:37 +0500 Subject: [PATCH] Fix missing BIM tool UI when just spatial element is active Noticed by "select decomposition" button missing, spatial elements are unselectable by default - they're just active. cc @trhyder --- src/bonsai/bonsai/bim/module/model/workspace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/model/workspace.py b/src/bonsai/bonsai/bim/module/model/workspace.py index 9a733646a2..6dbedcb6fe 100644 --- a/src/bonsai/bonsai/bim/module/model/workspace.py +++ b/src/bonsai/bonsai/bim/module/model/workspace.py @@ -109,7 +109,7 @@ class BimTool(WorkSpaceTool): def draw_settings(cls, context, layout, ws_tool): if context.scene.BIMGeometryProperties.mode == "ITEM": EditItemUI.draw(context, layout) - elif context.active_object and context.selected_objects and tool.Ifc.get_entity(context.active_object): + elif context.active_object and tool.Ifc.get_entity(context.active_object): EditObjectUI.draw(context, layout, ifc_element_type=cls.ifc_element_type) else: CreateObjectUI.draw(context, layout, ifc_element_type=cls.ifc_element_type)