diff options
author | Miika Hamalainen <blender@miikah.org> | 2013-08-02 20:39:50 +0400 |
---|---|---|
committer | Miika Hamalainen <blender@miikah.org> | 2013-08-02 20:39:50 +0400 |
commit | 9f1670cde6379b81627ce172c738aa95e62d699b (patch) | |
tree | 14bf814a8586a30349766fad0c44aba2a0b5811f /source/blender/blenkernel/intern | |
parent | ab777e957cb8e8bde925af9dc6f960e4f045fa7a (diff) |
Fix [#35541]: Point cache doesn't load existing frames from disk if cache file name is changed.
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/pointcache.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c index 41b9734315d..93f6965e97b 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -3578,6 +3578,11 @@ void BKE_ptcache_load_external(PTCacheID *pid) cache->flag &= ~(PTCACHE_OUTDATED|PTCACHE_FRAMES_SKIPPED); } + /* make sure all new frames are loaded */ + if (cache->cached_frames) { + MEM_freeN(cache->cached_frames); + cache->cached_frames=NULL; + } BKE_ptcache_update_info(pid); } |