-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: fix removeUnnecessaryJoints and combineSkeletons #1557
Conversation
it processes a same bone index attribute twice or more, which collapses the mesh We are going to fix combineSkeletons in the next commit
bones.push(mesh.skeleton.bones[oldIndex]); | ||
boneInverses.push(mesh.skeleton.boneInverses[oldIndex]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Considering cases multiple meshes share the same skin index attribute but not the same bones (which is unlikely) or boneInverses (which is more likely), we moved these lines here
It sometimes modified a skin index attribute twice or more, which collapses the skinned mesh rendering I'm sorry that it became a huge refactor ._.
fix doc comment of listUsedIndices See: #1557 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
This PR fixes
removeUnnecessaryJoints
andcombineSkeletons
.It processes the same bone index attribute twice or more, which collapses the mesh.
TODOs
Points need review