fix(sketch): apply Project to complete preselection
This commit is contained in:
1 parent
56b499e951
commit
874315db8e
9 files changed
+231
-6
No files matched your search
@@ -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!(
|
||||
|
||||
Reference in new issue
Block a user