Skip to content

Conversation

akleshchev
Copy link
Contributor

No description provided.

@akleshchev akleshchev merged commit 6a92f87 into project/gltf-mesh-import May 22, 2025
11 checks passed
@akleshchev akleshchev deleted the andreyk/viewer_4128 branch May 22, 2025 04:11
@github-actions github-actions bot locked and limited conversation to collaborators May 22, 2025

if (skin->mInvBindMatrix.size() < count )
{
// faulty model? mInvBindMatrix.size() should have matched mJointNames.size()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

invBindMatrix may not be present despite the model being rigged. Per the spec, the inverse bind matrices must be the same size as the joints array, but only when inverse bind matrices are present.

Copy link
Contributor Author

@akleshchev akleshchev May 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code below assumes that they match, crash happened on invBind. I know that it isn't nessesary, but I'm not certain if it should have been present in this particular case or if initSkinningMatrixPalette shoudn't have been called.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants