mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-20 02:08:14 +00:00
Added ModelAnimation.name, initially with GLTF animation names loaded (#3044)
This commit is contained in:

committed by
GitHub

parent
de748dfffe
commit
53b7b26c45
@@ -5375,6 +5375,9 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, unsigned in
|
||||
animDuration = (t > animDuration)? t : animDuration;
|
||||
}
|
||||
|
||||
strncpy(animations[i].name, animData.name, sizeof(animations[i].name));
|
||||
animations[i].name[sizeof(animations[i].name) - 1] = '\0';
|
||||
|
||||
animations[i].frameCount = (int)(animDuration*1000.0f/GLTF_ANIMDELAY);
|
||||
animations[i].framePoses = RL_MALLOC(animations[i].frameCount*sizeof(Transform *));
|
||||
|
||||
|
Reference in New Issue
Block a user