feat: strengthen sketches, feature editing, and independent assemblies

This commit is contained in:
bherbruck committed 2026-10-11 02:44:31 -04:00
1 parent 07932d0f42
commit 0398a813c8
65 files changed
+7082 -268

No files matched your search

+7 -1
View File
@@ -647,7 +647,13 @@ pub fn on_click(app: &mut SolveApp, tool: &mut Tool, proj: &Proj, pos: Pos2) {
}
}
Mode::CurveAt => {
if let (Some((id, false)), Some((p, _))) = (sketch_entity(app, &hits), at) {
let curve = active_sketch(app).and_then(|active| {
hits.iter().find_map(|hit| match hit {
Hit::SketchCurve { sketch, id, .. } if *sketch == active => Some(id.clone()),
_ => None,
})
});
if let (Some(id), Some((p, _))) = (curve, at) {
let _ = app.run(cmd, json!({"curve": id, "at": xy(p)}));
}
}