mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
The BIM Tool now provides similar slab-like editing tools for ramps and roofs
This commit is contained in:
@@ -109,7 +109,7 @@ class BimToolUI:
|
||||
|
||||
row = cls.layout.row(align=True)
|
||||
row.prop(data=cls.props, property="x_angle", text="X Angle")
|
||||
elif cls.props.ifc_class == "IfcSlabType":
|
||||
elif cls.props.ifc_class in ("IfcSlabType", "IfcRampType", "IfcRoofType"):
|
||||
row = cls.layout.row(align=True)
|
||||
row.prop(data=cls.props, property="x_angle", text="X Angle")
|
||||
elif cls.props.ifc_class in ("IfcColumnType", "IfcBeamType", "IfcMemberType"):
|
||||
@@ -177,7 +177,7 @@ class BimToolUI:
|
||||
row.label(text="", icon="EVENT_G")
|
||||
row.operator("bim.hotkey", text="Regen").hotkey = "S_G"
|
||||
row.operator("bim.join_wall", icon="X", text="").join_type = ""
|
||||
elif AuthoringData.data["active_class"] in ("IfcSlab", "IfcSlabStandardCase"):
|
||||
elif AuthoringData.data["active_class"] in ("IfcSlab", "IfcSlabStandardCase", "IfcRamp", "IfcRoof"):
|
||||
if context.active_object.mode == "OBJECT":
|
||||
row = cls.layout.row(align=True)
|
||||
row.label(text="", icon="EVENT_SHIFT")
|
||||
@@ -414,7 +414,7 @@ class Hotkey(bpy.types.Operator, tool.Ifc.Operator):
|
||||
def hotkey_S_E(self):
|
||||
if self.active_class in ("IfcWall", "IfcWallStandardCase"):
|
||||
bpy.ops.bim.join_wall(join_type="T")
|
||||
elif self.active_class in ("IfcSlab", "IfcSlabStandardCase"):
|
||||
elif self.active_class in ("IfcSlab", "IfcSlabStandardCase", "IfcRamp", "IfcRoof"):
|
||||
if not bpy.context.active_object:
|
||||
pass
|
||||
elif bpy.context.active_object.mode == "OBJECT":
|
||||
|
||||
Reference in New Issue
Block a user