diff options
author | Janne Karhu <jhkarh@gmail.com> | 2010-11-08 14:19:53 +0300 |
---|---|---|
committer | Janne Karhu <jhkarh@gmail.com> | 2010-11-08 14:19:53 +0300 |
commit | f15187cfcdfcc4f1210ce2b9ff7caba804411867 (patch) | |
tree | 915988f6d70c54a0e987f7445cc75009c9d6a98a /source/blender/makesrna | |
parent | d5a913378f1ed12f62abc9e0205e233ad66b2cf3 (diff) |
Fix for [#24597] Option External in Smoke cache affects settings of start and end frame of simulation
* Don't change anything in the pointcache unless a valid external cache is found.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_object_force.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c index 3a8f66a3773..13a62c913d1 100644 --- a/source/blender/makesrna/intern/rna_object_force.c +++ b/source/blender/makesrna/intern/rna_object_force.c @@ -171,10 +171,8 @@ static void rna_Cache_idname_change(Main *bmain, Scene *scene, PointerRNA *ptr) if(!pid) return; - cache->flag |= (PTCACHE_BAKED|PTCACHE_DISK_CACHE|PTCACHE_SIMULATION_VALID); - cache->flag &= ~(PTCACHE_OUTDATED|PTCACHE_FRAMES_SKIPPED); - BKE_ptcache_load_external(pid); + DAG_id_flush_update(&ob->id, OB_RECALC_DATA); } else { |