diff options
author | Luca Rood <dev@lucarood.com> | 2017-04-20 15:59:02 +0300 |
---|---|---|
committer | Luca Rood <dev@lucarood.com> | 2017-04-20 16:01:21 +0300 |
commit | ee3faddfaaa1a624b708f32aefd557ff1761041b (patch) | |
tree | 07e3ed179825c1fd27167b4b92356ef5671bda72 | |
parent | ae79eb2105de519bcc408256d25272efa3195818 (diff) |
Fix T45350: Cache not being recomputed with "Bake All Dynamics"
-rw-r--r-- | source/blender/blenkernel/intern/pointcache.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c index 30eb8dcb287..a7e00a8103a 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -3618,9 +3618,7 @@ void BKE_ptcache_bake(PTCacheBaker *baker) psys_get_pointcache_start_end(scene, pid->calldata, &cache->startframe, &cache->endframe); } - if ((cache->flag & PTCACHE_REDO_NEEDED || (cache->flag & PTCACHE_SIMULATION_VALID)==0) && - (render || bake)) - { + if (((cache->flag & PTCACHE_BAKED) == 0) && (render || bake)) { BKE_ptcache_id_clear(pid, PTCACHE_CLEAR_ALL, 0); } |