From 5494ad6e84daf457c5558bceb825d6e54202308b Mon Sep 17 00:00:00 2001 From: TheNoiselessNoise Date: Fri, 7 Aug 2026 07:33:23 +0200 Subject: [PATCH] models_loading_iqm - actually use animIndex --- examples/models/models_loading_iqm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/models/models_loading_iqm.c b/examples/models/models_loading_iqm.c index 0eab898a4..46581e4d4 100644 --- a/examples/models/models_loading_iqm.c +++ b/examples/models/models_loading_iqm.c @@ -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