Fix PlayAnim cache size increasing when playing multiple animations

Error in 0499dbc5c1
This commit is contained in:
Campbell Barton 2021-05-08 16:10:07 +10:00
parent 5ec6bcd474
commit a9eea6d9dc
1 changed files with 1 additions and 0 deletions

View File

@ -1784,6 +1784,7 @@ static char *wm_main_playanim_intern(int argc, const char **argv)
#ifdef USE_FRAME_CACHE_LIMIT
BLI_freelistN(&g_frame_cache.pics);
g_frame_cache.pics_len = 0;
g_frame_cache.pics_size_in_memory = 0;
#endif
#ifdef WITH_AUDASPACE