fix(view): preserve projection framing

Use full 3D bounds to derive a safe perspective eye distance without changing the camera target, orientation, or field of view.

Refs #502
This commit is contained in:
Hakan Seven committed 2026-08-05 12:47:46 +03:00
1 parent 5a0c286a10
commit e07f4f959b
5 files changed
+219 -19

No files matched your search

+2
View File
@@ -286,6 +286,7 @@ impl Scene {
.map(|t| t.camera.clone());
if let Some(c) = cam {
*self.camera.borrow_mut() = c;
self.projection_bounds_epoch.set(0);
}
}
}
@@ -362,6 +363,7 @@ impl Scene {
};
if let Some(cam) = incoming {
*self.camera.borrow_mut() = cam;
self.projection_bounds_epoch.set(0);
}
self.active_model_tile.set(idx);
true