Fix #33600: copying objects with point caches did not copy the external,

disk cache and lib path settings.
This commit is contained in:
Brecht Van Lommel
2012-12-18 14:05:54 +00:00
parent 9c90cf3ca4
commit 2a657345c7

View File

@@ -2782,7 +2782,8 @@ static PointCache *ptcache_copy(PointCache *cache, int copy_data)
ncache->mem_cache.last = NULL;
ncache->cached_frames = NULL;
ncache->flag= 0;
/* flag is a mix of user settings and simulator/baking state */
ncache->flag= ncache->flag & (PTCACHE_DISK_CACHE|PTCACHE_EXTERNAL|PTCACHE_IGNORE_LIBPATH);
ncache->simframe= 0;
}
else {