Merged changes in the trunk up to revision 42116.
[blender.git] / source / blender / editors / physics / physics_pointcache.c
index f826d0ec41a337c9a0628d6db9d2c8b3fed31e39..0cecfa05b49988d203685d2097ae2e399f8de837 100644 (file)
@@ -321,7 +321,9 @@ static int ptcache_add_new_exec(bContext *C, wmOperator *UNUSED(op))
        
        for(pid=pidlist.first; pid; pid=pid->next) {
                if(pid->cache == cache) {
-                       *(pid->cache_ptr) = BKE_ptcache_add(pid->ptcaches);
+                       PointCache *cache = BKE_ptcache_add(pid->ptcaches);
+                       cache->step = pid->default_step;
+                       *(pid->cache_ptr) = cache;
                        break;
                }
        }