forked from 1b-agent/opencadstudio-upstream
- Add orbit_active_viewport(), snap_active_viewport_to_angles(), active_view_rotation_mat(), active_viewport_yaw_pitch() helpers so navigation gestures modify the DXF viewport entity's view_direction instead of the paper-space camera. - Fix "already there → flip opposite" check: the previous code used rot * Vec4::W (always (0,0,0,1) for a rotation matrix); now reads (yaw, pitch) directly from camera_for_viewport() via the new helper. - MSPACE right-drag orbit early-returns after writing the viewport entity, preventing the paper-space camera from also being modified. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>