models_loading_iqm - actually use animIndex

This commit is contained in:
TheNoiselessNoise 2026-08-07 07:33:23 +02:00
commit 5494ad6e84

View file

@ -66,8 +66,8 @@ int main(void)
// Play animation when spacebar is held down
animCurrentFrame += 1.0f;
UpdateModelAnimation(model, anims[0], animCurrentFrame);
if (animCurrentFrame >= anims[0].keyframeCount) animCurrentFrame = 0;
UpdateModelAnimation(model, anims[animIndex], animCurrentFrame);
if (animCurrentFrame >= anims[animIndex].keyframeCount) animCurrentFrame = 0;
//----------------------------------------------------------------------------------
// Draw