mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Fix #5512. Minor fix of console errors in workspace.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user