Merge pull request #1357 from ramox81/codex/vertical-constraint-parity

Match Vertical geometric constraint behavior

# Conflicts:
#	src/app/commands/draw.rs
#	src/scene/parametric_constraints.rs
#	src/ui/overlay.rs
This commit is contained in:
Hakan Seven committed 2026-09-18 18:54:12 +03:00
commit 3ba7b38934
6 files changed
+267 -88

No files matched your search

+6 -3
View File
@@ -1582,10 +1582,12 @@ pub enum CmdResult {
/// Undo-history label, e.g. `"Horizontal constraint"`.
label: &'static str,
},
/// Adds a Horizontal relation against the UCS X direction captured when
/// the command starts. The direction is persisted with the constraint so
/// later edits and save/reopen do not silently fall back to world X.
/// Adds a Horizontal or Vertical relation (`kind`) against the UCS X or
/// Y direction captured when the command starts. The direction is
/// persisted with the constraint so later edits and save/reopen do not
/// silently fall back to the world axis.
AddHorizontalConstraint {
kind: crate::scene::parametric_constraints::ConstraintKind,
selection: HorizontalConstraintSelection,
direction: acadrust::types::Vector3,
label: &'static str,
@@ -2887,6 +2889,7 @@ mod constraint_registry_tests {
"OCCONSTRAINT",
"GCHORIZONTAL",
"VCONSTRAINT",
"GCVERTICAL",
"PCONSTRAINT",
"QCONSTRAINT",
"GCPERPENDICULAR",