Merge pull request #180 from 0xlillith/fix/sketch-point-constraint-preselection

fix: apply Coincident, Midpoint and point Symmetry to preselection
This commit is contained in:
bherbruck authored and GitHub committed 2026-10-11 15:32:20 -04:00
commit da56d180bf
4 files changed
+136 -1

No files matched your search

+7
View File
@@ -547,6 +547,13 @@ impl SolveApp {
self.last_command = Some((spec.id.to_string(), spec.label.to_string()));
}
if let Some(mut t) = tools::Tool::for_command(id) {
if let Some(params) = tools::constraint_preselection(id, &self.session.selection) {
if self.run(id, params).is_ok() {
let _ = self.session.execute("select.clear", &json!({}));
self.set_status("Constraint applied", false);
}
return;
}
// Curve-pair constraints can consume an exact preselection. Leave ambiguous
// selections to the ordinary pick tool; never silently constrain a subset.
if matches!(