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
This commit is contained in:
parent
105ae3be99
commit
28c684f66b
Notes:
blender-bot
2023-02-14 01:48:10 +01:00
Referenced by issue #66999, Blender creates new cache for particles with step 10 instead 1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue