diff options
Diffstat (limited to 'src/models.c')
| -rw-r--r-- | src/models.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/models.c b/src/models.c index 145e08b3..591053ef 100644 --- a/src/models.c +++ b/src/models.c @@ -1112,6 +1112,13 @@ void UpdateModelAnimation(Model model, ModelAnimation anim, int frame) } } +// Unload animation array data +void UnloadModelAnimations(ModelAnimation* animations, unsigned int count) +{ + for (int i = 0; i < count; i++) UnloadModelAnimation(animations[i]); + RL_FREE(animations); +} + // Unload animation data void UnloadModelAnimation(ModelAnimation anim) { |
