Smoke Bugfix: Velocity of moving objects was too high after scaling patch.

Spoted by MiikaH.
This commit is contained in:
Daniel Genrich
2012-06-01 15:49:39 +00:00
parent abc1a27762
commit 3ea554e0a2

View File

@@ -1172,7 +1172,7 @@ static void update_obstacles(Scene *scene, Object *ob, SmokeDomainSettings *sds,
sub_v3_v3v3(vel, pos, oldpos);
/* Scale velocity to incorperate the object movement during this step */
mul_v3_fl(vel, 1.0 / (totalsteps * dt));
mul_v3_fl(vel, 1.0 / (totalsteps * dt * sds->scale));
// mul_v3_fl(vel, 1.0 / dt);
// DG TODO: cap velocity to maxVelMag (or maxvel)