Formatting and default bone name

This commit is contained in:
PencilAmazing 2023-01-23 12:52:14 -05:00
parent 2adf5902f4
commit 5071302ddf

View File

@ -4514,6 +4514,8 @@ static ModelAnimation *LoadModelAnimationsIQM(const char *fileName, unsigned int
// If animations and skeleton are in the same file, copy bone names to anim
if (iqmHeader->num_joints > 0)
memcpy(animations[a].bones[j].name, fileDataPtr + iqmHeader->ofs_text + joints[j].name, BONE_NAME_LENGTH*sizeof(char));
else
strcpy(animations[a].bones[j].name, "ANIMJOINTNAME"); // default bone name otherwise
animations[a].bones[j].parent = poses[j].parent;
}