mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-05 23:41:44 +00:00
Show drag arrows on all parametric dimensions, not just ForcePerpendicularToFace
DimensionLinePositionWidget was gated behind ForcePerpendicularToFace in both the gizmo poll and the regenerate_dimension LinePosition application. The coupling was unnecessary: _get_line_offset_direction already derives the offset axis from cross(world_Z, dim_direction) as its primary path, requiring the face normal only as a vertical-dimension fallback. Remove the ForcePerpendicularToFace guard from both sites so any anchor-based dimension shows the drag arrows and responds to LinePosition.
This commit is contained in:
@@ -2803,7 +2803,7 @@ class DimensionLinePositionWidget(types.GizmoGroup):
|
||||
if _ue.get_predefined_type(element) not in cls._DIM_TYPES:
|
||||
return False
|
||||
pset = _ue.get_pset(element, "BBIM_Dimension")
|
||||
return bool(pset and pset.get("Anchors") and pset.get("ForcePerpendicularToFace"))
|
||||
return bool(pset and pset.get("Anchors"))
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
# Helpers
|
||||
|
||||
Reference in New Issue
Block a user