From 28c684f66b439dd7e36349e3c751318fd97897e3 Mon Sep 17 00:00:00 2001 From: Sebastian Parborg Date: Tue, 16 Jul 2019 17:29:48 +0200 Subject: 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 --- source/blender/blenkernel/intern/pointcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenkernel/intern/pointcache.c') 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; } -- cgit v1.2.3