fix(viewports): fit extents per pane

Closes #554
This commit is contained in:
Hakan Seven committed 2026-07-29 23:03:06 +03:00
1 parent f99337cb9a
commit 3897fb2661
5 files changed
+93 -8

No files matched your search

+2 -3
View File
@@ -137,9 +137,8 @@ impl Scene {
return;
}
self.camera
.borrow_mut()
.fit_to_bounds(min, max, self.last_render_aspect.get().max(0.01));
let aspect = self.active_camera_aspect();
self.camera.borrow_mut().fit_to_bounds(min, max, aspect);
self.camera_generation += 1;
}
}