forked from 1b-agent/opencadstudio-upstream
Floating viewports rendered blank on UTM drawings. camera_for_viewport centred both the saved-view overlap test and the auto-fit target on the ORIGIN — correct only while world_offset re-centred the model there. With world_offset removed the model sits at absolute (~5.7e6) coordinates, so a stale (0,0,0) saved view failed the overlap test AND the auto-fit aimed at empty origin, leaving the viewport empty. Both now use the absolute drawing centre from model_space_extents, so saved views that frame the model are kept and the auto-fit falls back onto the real content. Co-Authored-By: Claude Opus 4.8 <[email protected]>