mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
Minor fix for missing flip button for doors
This commit is contained in:
@@ -405,13 +405,9 @@ class BimToolUI:
|
|||||||
# NOTE: should be above "active_representation_type" = "SweptSolid" check
|
# NOTE: should be above "active_representation_type" = "SweptSolid" check
|
||||||
# because it could be a SweptSolid too
|
# because it could be a SweptSolid too
|
||||||
row = cls.layout.row(align=True)
|
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")
|
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 (
|
elif AuthoringData.data["active_class"] in (
|
||||||
"IfcWindow",
|
"IfcWindow",
|
||||||
"IfcWindowStandardCase",
|
"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, "Regen", "S_G", bpy.ops.bim.recalculate_fill.__doc__)
|
||||||
add_layout_hotkey_operator(cls.layout, "Flip", "S_F", "")
|
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",):
|
elif AuthoringData.data["active_class"] in ("IfcSpace",):
|
||||||
add_layout_hotkey_operator(cls.layout, "Regen", "S_G", bpy.ops.bim.generate_space.__doc__)
|
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:
|
elif tool.Model.is_parametric_roof_active() and not context.active_object.BIMRoofProperties.is_editing_path:
|
||||||
row = cls.layout.row(align=True)
|
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")
|
row.operator("bim.enable_editing_roof_path", text="Edit Roof Path")
|
||||||
|
|
||||||
if context.region.type != "TOOL_HEADER" and PortData.data["total_ports"] > 0:
|
if context.region.type != "TOOL_HEADER" and PortData.data["total_ports"] > 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user