From 288bdf7f0f2588adc97da8429bd6fec606519b5b Mon Sep 17 00:00:00 2001 From: bherbruck Date: Thu, 8 Oct 2026 18:13:56 +0000 Subject: [PATCH] Sketch on a face: Look At centres on the picked point instead of the plane's origin (a corner of the face), which left the face filling the view off-centre like a big grey square Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL --- crates/ui-egui/src/dialogs.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crates/ui-egui/src/dialogs.rs b/crates/ui-egui/src/dialogs.rs index 13284657..d986273d 100644 --- a/crates/ui-egui/src/dialogs.rs +++ b/crates/ui-egui/src/dialogs.rs @@ -1671,6 +1671,14 @@ pub fn start_sketch(app: &mut SolveApp, sel: &Sel) { if app.run("SketchCreate", json!({ "plane": plane })).is_ok() { app.pre_sketch_cam = Some(before); look_at_sketch(app); + // On a face: look at the picked point, not the plane's origin (a corner of the face), + // which left the face filling the view off-centre like a big square. + if let Sel::Face { point, .. } = sel + && let Some(mut to) = app.cam_anim.as_ref().map(|a| a.to) + { + to.target = *point; + app.animate_to(to); + } } }