fix(sketch): apply Project to complete preselection

This commit is contained in:
lillith authored and bherbruck committed 2026-10-12 10:05:52 -04:00
1 parent 56b499e951
commit 874315db8e
9 files changed
+231 -6

No files matched your search

+9
View File
@@ -539,6 +539,15 @@ impl SolveApp {
}
return;
}
if id == "sketch.project"
&& let Some(refs) = tools::projection_preselection(&self.session.selection)
{
if self.run(id, json!({"refs":refs})).is_ok() {
let _ = self.session.execute("select.clear", &json!({}));
self.set_status("Projection 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!(