mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1221] anim_glb: bind weighted bones outside the skeleton as extra rest-pose joints (OLD-10043) #1253
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1253
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1221
Author: @IlyassRS3
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:carry/old-10043-anim-glb-extra-joints📝 Commits (1)
7a5270aanim_glb: bind weighted bones outside the skeleton as extra rest-pose joints📊 Changes
3 files changed (+95 additions, -5 deletions)
View changed files
📝
docs/character_skeleton.md(+7 -2)📝
tests/test_anim_glb.py(+57 -0)📝
tools/anim_glb.py(+31 -3)📄 Description
Claimed in the coordination issue as: OLD-10043 (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143657006)
What and why
Carries forward
old-pr/10043(draft#308, indexed in#17), preserving@tedin7's original commit rebased onto currentmain.Clothing parts whose weighted cloth or accessory bones are not listed in the master skeleton were previously refused whole by
tools/anim_glb.py.extend_joints()now appends one extra rest-pose jointbone_0x<hash>per weighted unknown bone hash (sorted deterministically, skipping zero-weight bones and keeping earlier joint indices stable across parts), parented under the skeleton's first root with an identity local transform and the root's inverse bind matrix so the rest pose stays exact while clip tracks naming the hash can still drive it. Documents the behavior indocs/character_skeleton.mdand covers it intests/test_anim_glb.py.Tested
python3 -I tests/test_anim_glb.py -von macOS 27.2.1 / Apple M5 (Python 3.14): 38/38 passed (includingtools/glb_skinning.pyvalidation on the exported multi-part GLB).tools/anim_glb.pytomaincauses the new tests intests/test_anim_glb.pyto fail as expected.python3 -m compileall -q make_game.py tools tests,scripts/check_no_game_data.py,tests/test_ci_registration.py,tests/test_text_write_line_endings.py, and all 11tests/test_docs_*.py: all passed.git apply --check) against open PR#1084.GPUs tested: n/a (CPU asset/GLB tooling, no GPU or game files)
AI-assisted: yes (carry-forward rebase, audit, and verification of
@tedin7's commit)Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.