From f518c4e939a824a4174d1ce4ec0ddb53125cfab0 Mon Sep 17 00:00:00 2001 From: culacant Date: Tue, 6 Aug 2019 23:08:58 +0200 Subject: Fix loading multiple animations from .iqm file (#928) * Fix loading multiple animations from .iqm file * Fix memory leak in models_animation example * Added export instructions to the animation example * use raylib free * include to appease the travis CI gods * replace tabs with spaces --- examples/models/models_animation.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'examples') diff --git a/examples/models/models_animation.c b/examples/models/models_animation.c index 7f38b7f5..5e7c8cf5 100644 --- a/examples/models/models_animation.c +++ b/examples/models/models_animation.c @@ -9,8 +9,15 @@ * * Copyright (c) 2019 Culacant (@culacant) and Ramon Santamaria (@raysan5) * +******************************************************************************************** +* +* To export a model from blender, make sure it is not posed, the vertices need to be in the +* same position as they would be in edit mode. +* and that the scale of your models is set to 0. Scaling can be done from the export menu. +* ********************************************************************************************/ +#include #include "raylib.h" int main(void) @@ -93,6 +100,7 @@ int main(void) //-------------------------------------------------------------------------------------- // Unload model animations data for (int i = 0; i < animsCount; i++) UnloadModelAnimation(anims[i]); + RL_FREE(anims); UnloadModel(model); // Unload model -- cgit v1.2.3