diff options
Diffstat (limited to 'source/blender/simulations/bparticles/forces.cpp')
-rw-r--r-- | source/blender/simulations/bparticles/forces.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/simulations/bparticles/forces.cpp b/source/blender/simulations/bparticles/forces.cpp index e6d251fd82e..b2818a4e1f7 100644 --- a/source/blender/simulations/bparticles/forces.cpp +++ b/source/blender/simulations/bparticles/forces.cpp @@ -56,12 +56,12 @@ void PointForce::add_force(ForceInterface &interface) if (gravitation) { if (distance < FLT_EPSILON) { - strength = 0.0f; - } + strength = 0.0f; + } else { strength *= powf(distance, -2.0f); - } - } + } + } direction *= (strength * falloff); |