Possible fix for all the particles related SIMD SVBVH bugs.

* Velocity for particles that were born at exactly integer frames was calculated wrong when they were born.
Note: If you had a raytrace acceleration related bug, please clear the pointcache for all particles, toggle a particle setting to reset pointcache and rebake to create a valid simulation.
This commit is contained in:
Janne Karhu 2010-09-17 19:02:19 +00:00
parent 4e9c329faf
commit b4a4c33054

@ -3441,7 +3441,7 @@ static void dynamics_step(ParticleSimulationData *sim, float cfra)
else if(part->phystype == PART_PHYS_NO) else if(part->phystype == PART_PHYS_NO)
reset_particle(sim, pa, dtime, cfra); reset_particle(sim, pa, dtime, cfra);
if(dfra>0.0 && ELEM(pa->alive,PARS_ALIVE,PARS_DYING)){ if(pa_dfra>0.0 && ELEM(pa->alive,PARS_ALIVE,PARS_DYING)){
switch(part->phystype){ switch(part->phystype){
case PART_PHYS_NEWTON: case PART_PHYS_NEWTON:
/* do global forces & effectors */ /* do global forces & effectors */