Browse Source

LoadBoneInfoGLTF add check for animation name being NULL (#4053)

Co-authored-by: Vito Tringolo <vito.tringolo@recognitionrobotics.com>
pull/4056/head
VitoTringolo 7 months ago
committed by GitHub
parent
commit
0fc4b61906
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rmodels.c

+ 1
- 1
src/rmodels.c View File

@ -4864,7 +4864,7 @@ static BoneInfo *LoadBoneInfoGLTF(cgltf_skin skin, int *boneCount)
for (unsigned int i = 0; i < skin.joints_count; i++)
{
cgltf_node node = *skin.joints[i];
strncpy(bones[i].name, node.name, sizeof(bones[i].name));
k">if (node.name != NULL) strncpy(bones[i].name, node.name, sizeof(bones[i].name));
// Find parent bone index
unsigned int parentIndex = -1;

Loading…
Cancel
Save