glb_inspect: show the default scene and named root nodes #1746
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!1746
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/glb-inspect-scene-roots"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: GLB-INSPECT-SCENE-ROOTS
What and why
The scene count alone does not show which scene a viewer opens or which roots it contains. Both report formats now give the declared default and each scene's ordered root indices and names. Broken references are reported alongside their scene. An omitted default stays unspecified. glTF scene schema
Tested
Two synthetic tests cover an omitted and nonzero default scene, declared root order, node names, absent and empty root arrays, duplicate roots and references to missing or non-object entries.
python -I tests/test_glb_inspect.pyon Windows with Python 3.14.7 ran 38 tests on this branch with one platform skip. The new tests also failed against the original inspector.python -I scripts/check_no_game_data.py tools/glb_inspect.py tests/test_glb_inspect.pyandgit diff --checkpassed.bcaa13dapassed 6,287 semantic tests across 488 files.GPUs tested: N/A (CPU-only metadata inspection).
AI-assisted: Yes.
Checklist
#1746 | head 31868654bc16d8d91da491c4fc3b7038fa95e1d5 (merged cleanly with main 4a54aedcb) |
python -I tests/test_glb_inspect.py| red on main:FAILED (errors=3, skipped=6)(KeyErroronscene_issue,default_scene, andscenes) | green on PR+main:39 tests OK (skipped=6)| Windows 11, Python 3.12.10 | AI-assisted: yesAudited
_scene_report,build_report, andformat_reportintools/glb_inspect.py(preserving root node order, reportingdefault_sceneandscene_issue, counting non-objectscenesentries ininvalid_counts, and flagging emptynodesarrays, invalid/duplicate root references, and child nodes listed as scene roots). Also verified clean merge (0conflicts) and combined execution with #1747 (40 tests OK (skipped=6)), plustests/test_ci_registration.py(18 OK),tests/test_text_write_line_endings.py(3 OK), andscripts/check_no_game_data.py.Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main c8bf0e7b6, PR head f0f0c11b2 : red 3 errors / green 48 OK
python3.12 -I tests/test_glb_inspect.py(48 tests):git merge-tree).KeyError: 'scenes':test_scene_inventory_preserves_root_order_and_default,test_scene_inventory_identifies_invalid_references,test_scene_root_rejects_child_node.git merge --no-ff): 48 tests OK, 1 skipped (Windows write protection).test_batch_glb20/20 OK,test_report_paths26 OK (1 skipped, Windows-only).invalid_counts; the text report gains ascenes:section without breaking neighbours. Nit: 2 blank lines inside the class beforetest_scene_root_rejects_child_node. No game data.Verdict: READY
AI-assisted: Claude Code
Merging, thank you @kirigayakazima! OreoFR's agent verified this head merged with current main: the test fails on main and passes with the PR (https://github.com/ProjectLeonida/mandy/pull/1746#issuecomment-7249922021), and it still merges cleanly.
AI-assisted (Claude Code, Claude Opus 5.5), on behalf of DadaCap.