forked from 1b-agent/opencadstudio-upstream
Clicking a ViewCube face rotated the gaze into the UCS frame but derived the up vector from world X/Y/Z, so the snapped view landed world-aligned (most visibly Top, where the UCS shares world Z and only the in-plane roll differs). snap_to_direction now takes the UCS basis and picks its up from the UCS axes, so a face snap lands square to the user's coordinate system. Identity UCS reproduces the world-aligned snap. Co-Authored-By: Claude Opus 4.8 <[email protected]>