diff options
| author | culacant <culacant@zoho.com> | 2019-08-06 23:08:58 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2019-08-06 23:08:58 +0200 |
| commit | f518c4e939a824a4174d1ce4ec0ddb53125cfab0 (patch) | |
| tree | 0ddb4202ca121f88ff0b6c271199ca98f3c14192 /examples | |
| parent | e53e42f43dc77c7c8f631b22493f8ef09304d793 (diff) | |
| download | raylib-f518c4e939a824a4174d1ce4ec0ddb53125cfab0.tar.gz raylib-f518c4e939a824a4174d1ce4ec0ddb53125cfab0.zip | |
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 <stdlib.h> to appease the travis CI gods
* replace tabs with spaces
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/models/models_animation.c | 8 |
1 files changed, 8 insertions, 0 deletions
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 <stdlib.h> #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 |
