Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2019-07-16 18:29:48 +0300
committerSebastian Parborg <darkdefende@gmail.com>2019-07-16 18:33:24 +0300
commit28c684f66b439dd7e36349e3c751318fd97897e3 (patch)
tree87617c146cc1e9a24cf4068bc7b8f5d4f04b1c49
parent105ae3be9993a646615499bf793cb14549e4104d (diff)
Fix T66999: Blender creates new cache for particles with step 10 instead 1
Update the default init step values to be the same for all caches. This is actually a small hack as these values are not used on the creation of the first cache. But the default init value is 1, so this will not be noticeable anymore. Reviewed By: Brecht Differential Revision: http://developer.blender.org/D5271
-rw-r--r--source/blender/blenkernel/intern/pointcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c
index d441ffdc8ff..b577efd2a22 100644
--- a/source/blender/blenkernel/intern/pointcache.c
+++ b/source/blender/blenkernel/intern/pointcache.c
@@ -1590,7 +1590,7 @@ void BKE_ptcache_id_from_softbody(PTCacheID *pid, Object *ob, SoftBody *sb)
pid->stack_index = pid->cache->index;
- pid->default_step = 10;
+ pid->default_step = 1;
pid->max_step = 20;
pid->file_type = PTCACHE_FILE_PTCACHE;
}
@@ -1655,7 +1655,7 @@ void BKE_ptcache_id_from_particles(PTCacheID *pid, Object *ob, ParticleSystem *p
pid->info_types = (1 << BPHYS_DATA_TIMES);
- pid->default_step = 10;
+ pid->default_step = 1;
pid->max_step = 20;
pid->file_type = PTCACHE_FILE_PTCACHE;
}