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
This commit is contained in:
Andrej730
2024-11-13 11:30:37 +05:00
parent 659c3295bc
commit 5913fe881e
@@ -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)