Fix [#35541]: Point cache doesn't load existing frames from disk if cache file name is changed.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user