fix(view): correct 3D mesh interaction

Sync projection controls from the active camera, preserve the UCS icon in perspective views, and use visible or selected 3D geometry for orbit pivots. Dense mesh vertex grips remain hidden.
This commit is contained in:
Hakan Seven committed 2026-08-12 19:49:52 +03:00
1 parent 1045283082
commit 0df2356243
6 files changed
+136 -80

No files matched your search

+9
View File
@@ -446,6 +446,15 @@ impl Scene {
self.camera.borrow().rotation
}
pub fn active_camera_projection(&self) -> view::camera::Projection {
if let Some(handle) = self.active_viewport {
if let Some(camera) = self.camera_for_viewport(handle) {
return camera.projection;
}
}
self.camera.borrow().projection
}
/// View-rotation matrix for the active viewport (MSPACE), or the
/// paper-space camera's matrix when not in MSPACE.
/// Used by ViewCube hit-testing so clicks map to the correct camera.