diff options
author | Jacques Lucke <mail@jlucke.com> | 2019-07-30 16:06:22 +0300 |
---|---|---|
committer | Jacques Lucke <mail@jlucke.com> | 2019-07-30 16:06:22 +0300 |
commit | 042cc17babd00389a2649d5a3cba8594aa7d9acd (patch) | |
tree | cbdf52c15acd0a0f6f5b1d2d7a2cad28ff16aa47 /source/blender/simulations/bparticles/forces.cpp | |
parent | 760e084791837c7ae9d818d6a3056ced29cb210a (diff) |
clang-format
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); |