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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
This commit is contained in:
1 parent
7027382667
commit
288bdf7f0f
1 file changed
+8
@@ -1671,6 +1671,14 @@ pub fn start_sketch(app: &mut SolveApp, sel: &Sel) {
|
|||||||
if app.run("SketchCreate", json!({ "plane": plane })).is_ok() {
|
if app.run("SketchCreate", json!({ "plane": plane })).is_ok() {
|
||||||
app.pre_sketch_cam = Some(before);
|
app.pre_sketch_cam = Some(before);
|
||||||
look_at_sketch(app);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user