Fix [#35541]: Point cache doesn't load existing frames from disk if cache file name is changed.

This commit is contained in:
2013-08-02 16:39:50 +00:00
parent ab777e957c
commit 9f1670cde6
2 changed files with 6 additions and 0 deletions

View File

@@ -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);
}