forked from 1b-agent/opencadstudio-upstream
When a fresh document hasn't tessellated yet (no wire AABB cache, no per-entity key vertices found), compute_model_space_extents() returned None, so ZOOM EXTENTS / auto_fit_viewport had to wait for the next pass before they could fit. Use the header's saved model_space_extents_min/max as a last-resort answer so the very first ZOOM EXTENTS / fit-all after open lands on the drawing immediately. LIMMIN/LIMMAX and INSBASE remain read-only metadata for now — they need a bounded-grid mode (LIMMIN/LIMMAX) and a "save as block" anchor (INSBASE) before they map onto a visible behaviour. Co-Authored-By: Claude Opus 4.7 <[email protected]>