Skip to content

#4128 Crash on mInvBindMatrix#4129

Merged
akleshchev merged 2 commits into
project/gltf-mesh-importfrom
andreyk/viewer_4128
May 22, 2025
Merged

#4128 Crash on mInvBindMatrix#4129
akleshchev merged 2 commits into
project/gltf-mesh-importfrom
andreyk/viewer_4128

Conversation

@akleshchev

Copy link
Copy Markdown
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
Copy Markdown
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.

@akleshchev akleshchev May 22, 2025

Copy link
Copy Markdown
Contributor Author

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