Fix ordered perpendicular constraint behavior

This commit is contained in:
ramox81 committed 2026-09-16 18:21:16 +03:00
1 parent d894b8eb05
commit 60bfc88b39
10 files changed
+769 -51

No files matched your search

+11
View File
@@ -1477,6 +1477,16 @@ pub enum CmdResult {
/// Undo-history label, e.g. `"Horizontal constraint"`.
label: &'static str,
},
/// Adds an ordered perpendicular relation. The first picked direction and
/// the second direction's start point stay fixed during the initial solve;
/// those temporary anchors are not persisted as geometric constraints.
AddPerpendicularConstraint {
first: crate::scene::parametric_constraints::ParametricRef,
second: crate::scene::parametric_constraints::ParametricRef,
first_fixed: crate::scene::parametric_constraints::ParametricRef,
second_start: crate::scene::parametric_constraints::ParametricRef,
label: &'static str,
},
/// Opens the Auto Constrain settings dialog from the selection prompt.
OpenAutoConstrainSettings,
/// Adds an ordered Coincident relation. Point/point selections create a
@@ -2726,6 +2736,7 @@ mod constraint_registry_tests {
"VCONSTRAINT",
"PCONSTRAINT",
"QCONSTRAINT",
"GCPERPENDICULAR",
"ECONSTRAINT",
"TCONSTRAINT",
"NCONSTRAINT",