Big fix: particle pointcache was cleared fully on any particle setting change

* Now only the cache after current frame is cleared.
* Probably own fault from my last commit.
This commit is contained in:
Janne Karhu
2010-12-17 13:13:32 +00:00
parent 676d795d7e
commit 48abe2a27f

View File

@@ -3786,7 +3786,7 @@ static void system_step(ParticleSimulationData *sim, float cfra)
/* flag for possible explode modifiers after this system */
sim->psmd->flag |= eParticleSystemFlag_Pars;
BKE_ptcache_id_clear(pid, PTCACHE_CLEAR_ALL, cfra);
BKE_ptcache_id_clear(pid, PTCACHE_CLEAR_AFTER, cfra);
}
/* 2. try to read from the cache */