mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-09 21:53:40 +00:00
Fix #3142 : Use Tab hotkey to edit horizontally layered objects
This commit is contained in:
@@ -783,7 +783,7 @@ class OverrideModeSetEdit(bpy.types.Operator):
|
|||||||
|
|
||||||
# We are switching from OBJECT to EDIT mode.
|
# We are switching from OBJECT to EDIT mode.
|
||||||
usage_type = tool.Model.get_usage_type(element)
|
usage_type = tool.Model.get_usage_type(element)
|
||||||
if usage_type is not None and usage_type != "PROFILE":
|
if usage_type is not None and usage_type not in ("PROFILE", "LAYER3"):
|
||||||
# Parametric objects shall not be edited as meshes as they
|
# Parametric objects shall not be edited as meshes as they
|
||||||
# can be modified to be incompatible with the parametric
|
# can be modified to be incompatible with the parametric
|
||||||
# constraints.
|
# constraints.
|
||||||
@@ -811,6 +811,7 @@ class OverrideModeSetEdit(bpy.types.Operator):
|
|||||||
continue
|
continue
|
||||||
if (
|
if (
|
||||||
tool.Geometry.is_profile_based(obj.data)
|
tool.Geometry.is_profile_based(obj.data)
|
||||||
|
or usage_type == "LAYER3"
|
||||||
or tool.Geometry.is_swept_profile(representation)
|
or tool.Geometry.is_swept_profile(representation)
|
||||||
or tool.Pset.get_element_pset(element, "BBIM_Roof")
|
or tool.Pset.get_element_pset(element, "BBIM_Roof")
|
||||||
or tool.Pset.get_element_pset(element, "BBIM_Railing")
|
or tool.Pset.get_element_pset(element, "BBIM_Railing")
|
||||||
@@ -944,7 +945,7 @@ class OverrideModeSetObject(bpy.types.Operator):
|
|||||||
bpy.ops.bim.cad_hotkey(hotkey="S_Q")
|
bpy.ops.bim.cad_hotkey(hotkey="S_Q")
|
||||||
elif tool.Pset.get_element_pset(element, "BBIM_Roof"):
|
elif tool.Pset.get_element_pset(element, "BBIM_Roof"):
|
||||||
bpy.ops.bim.cad_hotkey(hotkey="S_Q")
|
bpy.ops.bim.cad_hotkey(hotkey="S_Q")
|
||||||
elif tool.Model.get_usage_type(element):
|
elif tool.Model.get_usage_type(element) == "PROFILE":
|
||||||
bpy.ops.bim.edit_extrusion_axis()
|
bpy.ops.bim.edit_extrusion_axis()
|
||||||
else:
|
else:
|
||||||
bpy.ops.bim.edit_extrusion_profile()
|
bpy.ops.bim.edit_extrusion_profile()
|
||||||
|
|||||||
Reference in New Issue
Block a user