Repository navigation
Conversation
RELMYMathieu
left a comment
There was a problem hiding this comment.
Reviewed the diff, looks good to me. Ran node --test tests/test_viewer_studio.cjs on the PR head (Node v24.22.1, Windows 11) and 6/6 pass. With the pre-fix studio.html the 3 new tests fail, so they cover the fix.
To note, there is some overlap with other open PRs:
|
Independently reviewed and tested 5d7dc5c, including a local integration onto main f3a7b0f. No new blocking finding in the stale-load cleanup, material-array handling, or texture-field escaping. The integration has one end-of-file conflict in tests/test_viewer_studio.cjs. Keeping both sides' complete test blocks resolves it: retain main's newer paging and DDS-inspector tests, then append this PR's three tests. viewer/studio.html applies without a conflict. The resulting diff still has only the original 80 insertions / 14 deletions across two files. Tested on Windows, Node.js v24.22.3 and Python 3.12.14:
The full viewer suite is 68/69 after integration. The only failure is the existing Shift/Ctrl camera test's missing AbortController, also reproduced on unchanged main (streaming 56/57), tracked by #5692. The repository-wide newline check also fails on the unchanged tools/leonida_tui.py:753 and tools/wave_diff.py:373 writers; these are not changed by this PR. This is synthetic CPU-only verification; no browser/GPU/driver or retail game files were used. AI-assisted review. This PR overlaps #5780 on stale-load handling and #6529 around texture image rendering, so please reconcile those when rebasing. Attached integration patch preserves sanchaton's original change, with the test block placed after main's newer tests. |
|
Independently tested head
This checks the exact PR head, not integration with current main (which has more studio tests). No real assets, browser/WebGL or GPU test; GPU/driver: not used. |
…pe texture preview/format
5d7dc5c to
8e082df
Compare
Claimed in #6414 (claim comment).
Summary
viewer/studio.html(loadModel): disposegltf.sceneviadisposeModelwhen a load resolves after a newer request (loadId !== modelLoadId), preventing leaked geometry/materials/textures.viewer/studio.html(applyMeshShading,disposeModel): handle multi-material meshes (Array.isArray(material)) when toggling wireframe and when disposing model materials/textures, and guarddisposeModel(!root)/typeof mat.dispose === 'function'.viewer/studio.html(renderTexturesGrid): escapet.previewandt.formatwithescapeHtml(...)in both the initial 80-item batch and the "show more" batch, matchingt.name.tests/test_viewer_studio.cjs: add 3 regression tests covering superseded-load disposal, multi-material wireframe/disposal, and escapingt.preview/t.formatin both batches.Verification
node --test tests/test_viewer_studio.cjs(Node v24.21.0, Windows): 6/6 passed.python -I tests/test_text_write_line_endings.py(Python 3.14.7, Windows): 3/3 passed.git diff --check: clean (exit 0).AI-assisted (Antigravity).