Skip to content
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

Added support for more bone weights in GLTF2 #4453

Merged
merged 3 commits into from Aug 16, 2022
Merged

Conversation

Promit
Copy link
Contributor

@Promit Promit commented Mar 17, 2022

The GLTF2 importer doesn't actually read beyond the first four bone weights (first attribute). This patch expands the parser to read as many bone weights as are available in the file.

Promit Roy and others added 2 commits March 17, 2022 14:55
The GLTF2 importer doesn't actually read beyond the first four bone weights (first attribute). This patch expands the parser to store as many bone weights as are available in the file.
@Promit
Copy link
Contributor Author

Promit commented Mar 17, 2022

The existing GLTF2 code only parses the first joints/weights attribute, but a file with more weights will have additional attributes that get ignored. This PR loads an arbitrary number of them. I tried to write this with as little disturbance to the existing code as possible, but I'm not 100% sure that this array-of-arrays setup was the best way to do this.

This is essentially a follow-up to #4451, which ensures that the load doesn't fail on a file with extended weights but also doesn't parse them. I have a test file I can share privately if you'd like to take a look, just let me know.

@kimkulling kimkulling merged commit a0f3751 into assimp:master Aug 16, 2022
@kimkulling
Copy link
Member

Merged, thanks a lot for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants