mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:55:52 +01:00
[PR #308] anim_glb: bind weighted bones outside the skeleton as extra rest-pose joints #360
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#360
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/308
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/10043📝 Commits (1)
a3cccb6anim_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
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):@ItsNotRexed: an exe PR, as you asked.What
tools/anim_glb.pyno longer refuses a clothing part whose weighted bones are not in the skeleton. Newextend_jointsadds one joint per weighted unknown bone hash, namedbone_0x<hash>, as a child of the skeleton's first root with identity local transform and the root's inverse bind matrix. The export loop extends the joint list part by part (several parts share one joint per hash; earlier indices do not move).bind_partitself is unchanged and still refuses a hash the skeleton lists twice. Docs and module docstring updated.Why
docs/character_skeleton.mdmeasures 3,212 of 9,571 skinned part drawables that use bones outside both skeletons (mostly clothing cloth bones), and the exporter raised "weighted bones not in the skeleton" for all of them. The part has no skeleton of its own, so nothing about those bones can be read; the extra joint is the samebone_0x........naming and parent-fallback skinned_glb.py already uses, and the root's inverse bind keeps every vertex at its stored rest position. No game data is used.Tested
python3 -I -m pytest tests/test_anim_glb.py: 38 passed (2 new:extend_jointsunit test, ~21 lines; two-part CLI export with a shared and an own cloth bone, ~38 lines, which also runs tools/glb_skinning.py on the output: exit 0).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.