Fix for [#21908] SPH fluids - crash when editing while playing
This commit is contained in:
@@ -3732,6 +3732,8 @@ static void system_step(ParticleSimulationData *sim, float cfra)
|
||||
oldtotpart = psys->totpart;
|
||||
|
||||
emit = emit_particles(sim, use_cache, cfra);
|
||||
if(emit > 0)
|
||||
BKE_ptcache_id_clear(&pid, PTCACHE_CLEAR_ALL, cfra);
|
||||
init = emit*emit + (psys->recalc & PSYS_RECALC_RESET);
|
||||
|
||||
if(init) {
|
||||
|
||||
Reference in New Issue
Block a user