Split Body: a sketch line as the splitting tool (#1552) (#1592)

Thanks @DuBearte.
This commit is contained in:
DuBearte authored and GitHub committed 2026-10-16 01:35:15 -04:00
1 parent dc6eca6830
commit 6f270f6259
12 files changed
+145 -11

No files matched your search

+8
View File
@@ -1677,6 +1677,14 @@ pub(crate) fn dialog_pick(app: &mut SolveApp, hit: &Hit, sel: Sel) {
};
d.extra.remove("path");
}
// Split Body's sketch line keeps the sketch it was picked in (curve ids repeat across sketches).
if matches!(d.kind, crate::dialogs::Kind::Split) {
if let Hit::SketchCurve { sketch, .. } = hit {
d.extra.insert("tool_sketch".into(), serde_json::json!(sketch));
} else {
d.extra.remove("tool_sketch");
}
}
app.dialog = Some(d);
}