Fix #5512. Minor fix of console errors in workspace.

This commit is contained in:
Dion Moult
2024-10-08 14:32:48 +11:00
parent 774791cf97
commit 1b321f0747
2 changed files with 2 additions and 1 deletions
@@ -492,6 +492,7 @@ class PolylineDecorator:
new_line = 20
for i, (key, field_name) in enumerate(texts.items()):
formatted_value = None
if self.input_ui:
if self.tool_state and key != self.tool_state.input_type:
formatted_value = self.input_ui.get_formatted_value(key)
@@ -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:
elif context.active_object and context.selected_objects 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)