From fe8d42c27cdbaf503e1218be1f7ca7f0056fc9ea Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 1 Jul 2024 10:30:16 +1000 Subject: [PATCH] Minor fix for missing flip button for doors --- .../blenderbim/bim/module/model/workspace.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/model/workspace.py b/src/blenderbim/blenderbim/bim/module/model/workspace.py index 8a13b2e1f4..33b5bb0845 100644 --- a/src/blenderbim/blenderbim/bim/module/model/workspace.py +++ b/src/blenderbim/blenderbim/bim/module/model/workspace.py @@ -405,13 +405,9 @@ class BimToolUI: # NOTE: should be above "active_representation_type" = "SweptSolid" check # because it could be a SweptSolid too row = cls.layout.row(align=True) - row.label(text="", icon=f"EVENT_TAB") + row.label(text="", icon="EVENT_TAB") row.operator("bim.enable_editing_railing_path", text="Edit Railing Path") - elif AuthoringData.data["active_representation_type"] == "SweptSolid": - if not tool.Model.is_parametric_window_active() and not tool.Model.is_parametric_door_active(): - add_layout_hotkey_operator(cls.layout, "Edit Profile", "S_E", "") - elif AuthoringData.data["active_class"] in ( "IfcWindow", "IfcWindowStandardCase", @@ -428,12 +424,16 @@ class BimToolUI: add_layout_hotkey_operator(cls.layout, "Regen", "S_G", bpy.ops.bim.recalculate_fill.__doc__) add_layout_hotkey_operator(cls.layout, "Flip", "S_F", "") + elif AuthoringData.data["active_representation_type"] == "SweptSolid": + if not tool.Model.is_parametric_window_active() and not tool.Model.is_parametric_door_active(): + add_layout_hotkey_operator(cls.layout, "Edit Profile", "S_E", "") + elif AuthoringData.data["active_class"] in ("IfcSpace",): add_layout_hotkey_operator(cls.layout, "Regen", "S_G", bpy.ops.bim.generate_space.__doc__) elif tool.Model.is_parametric_roof_active() and not context.active_object.BIMRoofProperties.is_editing_path: row = cls.layout.row(align=True) - row.label(text="", icon=f"EVENT_TAB") + row.label(text="", icon="EVENT_TAB") row.operator("bim.enable_editing_roof_path", text="Edit Roof Path") if context.region.type != "TOOL_HEADER" and PortData.data["total_ports"] > 0: