ifcurl/forgejo/custom
Bruno Postle afc966fdf6 Avoid full model reload for view-only URL changes (camera, clip, selector)
When the ifc:// URL is edited and Enter pressed, capture toRawUrl() of
the loaded model at load time. On any subsequent loadUrl() call, compare
against that snapshot: if the raw file URL is unchanged, call the new
applyViewChanges() function in-place instead of navigating to a new page.

applyViewChanges() diffs old vs new URL query params and applies only what
changed: camera position (with cameraControls.update(0) flush before
render), FOV/scale, clipping planes, selector/visibility, and query. A
full page reload now only happens when host, repo, ref, or path changes.

Fixes ifcurl-ntm.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-17 09:12:40 +01:00
..
public/assets Avoid full model reload for view-only URL changes (camera, clip, selector) 2026-05-17 09:12:40 +01:00