glb_inspect: diagnose broken skin joint and bind matrix references #1745
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!1745
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/glb-inspect-skin-references"
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-SKIN-REFERENCES
What and why
A skin with duplicate joints or a broken skeleton link looked identical to a healthy skin with the same joint count. The inspector now identifies invalid joint slots, missing skeleton or accessor references, non-MAT4 accessors and insufficient matrix counts. The optional inverse bind matrix accessor can still be omitted. glTF skin specification
Tested
The synthetic fixture covers duplicate joints, malformed and unresolved node indices, missing accessors, wrong matrix types, short counts and a valid accessor with extra matrices.
python -I tests/test_glb_inspect.pyon Windows with Python 3.14.7 ran 37 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
#1745 | head 2d8bce8970019cb87afce5cd6c7dbe3a2434f8f4 (merged cleanly with main 4a54aedcb) |
python -I tests/test_glb_inspect.py| red on main:FAILED (errors=2, skipped=6)(KeyError: 'issues'on broken skin joint, skeleton, and inverseBindMatrices references) | green on PR+main:38 tests OK (skipped=6)| Windows 11, Python 3.12.10 | AI-assisted: yesAudited
_skin_reportandformat_reportintools/glb_inspect.py(validating non-emptyjoints, missing/duplicate joint node indices,skeletonnode index, andinverseBindMatricesaccessorMAT4type,FLOAT (5126)componentType, andcount >= joint_count). Also verified clean merge (0conflicts) and combined execution with #1744 (39 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.Red/green:
pytest tests/test_glb_inspect.pyfails on main (2 failed, 30 passed, 6 skipped, 7 subtests passed) and passes on head 2d8bce897001 merged with main (32 passed, 6 skipped, 7 subtests passed).Targeted batch (PR tests, tests importing the changed modules, docs tests, translator when touched) merged on main d48a957bb in GitHub Actions: no new failure.
AI-assisted (Claude Code, Claude Opus 5.5)