Camera: Fit (F6, navigation bar) frames the selection when there is one; the wheel zooms toward the model's surface under the cursor
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01AS5Tn3xieewUSg3uxrMVdL
This commit is contained in:
1 parent
a3d187ccd1
commit
aee1e941bf
2 files changed
+61
-1
No files matched your search
@@ -599,7 +599,11 @@ impl SolveApp {
|
||||
pub fn animate_view(&mut self, v: &str) {
|
||||
let mut to = self.cam;
|
||||
match v {
|
||||
"fit" => to = self.fitted(to),
|
||||
// With something selected, Fit frames the selection.
|
||||
"fit" => match viewport::selection_bounds(self) {
|
||||
Some(b) => to.fit(&b),
|
||||
None => to = self.fitted(to),
|
||||
},
|
||||
"home" => {
|
||||
to.set_view(StandardView::Iso);
|
||||
to = self.fitted(to);
|
||||
|
||||
Reference in new issue
Block a user