glb_skinning: accept extra inverse bind matrices #1753
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!1753
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/glb-skinning-surplus-bind-matrices"
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-SKINNING-SURPLUS-BIND-MATRICES
What and why
The validator rejected every difference between the joint count and the accessor count. glTF permits an accessor to contain more matrices than a skin uses. The validator now rejects an undersized accessor, reports the actual count and retains its affine checks for the matrices used by joints. The synthetic case shares one accessor between two skins. glTF 2.0 skin specification
Tested
With one three-matrix accessor shared by skins of two joints and one joint, the baseline CLI exited 1 with two count errors. The branch exits 0 and its JSON retains both joint counts and the accessor count. The short-accessor and non-affine joint regressions also pass.
python -I tests/test_glb_skinning.pypassed all 27 tests on this branch (Windows, Python 3.14.7).git diff --checkand the repository game-data scan of all changed paths passed.bcaa13dapassed 6,287 semantic tests across 488 files.GPUs tested: N/A (CPU-only asset tooling).
AI-assisted: Yes.
Checklist
#1753 | head 783d1e61e52de26334a8dc97f1cf953fe590964a (merged cleanly with main 24549bdb1) |
python -I tests/test_glb_skinning.py| red on main:FAILED (failures=3)(inverseBindMatrices count 3 != joint count 2rejected shared surplus matrices) | green on PR+main:34 tests OK| Windows 11, Python 3.12.10 | AI-assisted: yesAudited
_validate_skinsintools/glb_skinning.pyanddocs/character_skeleton.md(acceptinginverseBindMatricesaccessors withcount >= len(joints)while still validating finite elements and the affine[0, 0, 0, 1]fourth row across every matrix in the accessor, including surplus entries). Also verified clean merge (0conflicts) and combined execution with #1754 (36 tests OK), plustests/test_docs_encoding.py(1 OK),tests/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_skinning.pyfails on main (1 failed, 5 passed, 4 subtests passed) and passes on head 783d1e61e52d merged with main (28 passed, 23 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)