Fix for [#27294] Subframes cause dampened particles to behave differently

* The unphysical particle damping wasn't scaled according to the timestep.
This commit is contained in:
2011-05-05 17:07:20 +00:00
parent 53a2f11148
commit 2137e2ecec

View File

@@ -2553,7 +2553,7 @@ static void basic_integrate(ParticleSimulationData *sim, int p, float dfra, floa
/* damp affects final velocity */
if(part->dampfac != 0.f)
mul_v3_fl(pa->state.vel, 1.f - part->dampfac * efdata.ptex.damp);
mul_v3_fl(pa->state.vel, 1.f - part->dampfac * efdata.ptex.damp * 25.f * dtime);
//VECCOPY(pa->state.ave, states->ave);