Fix for [#21908] SPH fluids - crash when editing while playing

This commit is contained in:
2010-04-05 09:46:01 +00:00
parent fee3daee56
commit 8b7d1775c3

View File

@@ -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) {