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
This commit is contained in:
parent
e53e42f43d
commit
f518c4e939
2 changed files with 127 additions and 121 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue