Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Lucke <mail@jlucke.com>2019-07-30 16:06:22 +0300
committerJacques Lucke <mail@jlucke.com>2019-07-30 16:06:22 +0300
commit042cc17babd00389a2649d5a3cba8594aa7d9acd (patch)
treecbdf52c15acd0a0f6f5b1d2d7a2cad28ff16aa47 /source/blender/simulations/bparticles/forces.cpp
parent760e084791837c7ae9d818d6a3056ced29cb210a (diff)
clang-format
Diffstat (limited to 'source/blender/simulations/bparticles/forces.cpp')
-rw-r--r--source/blender/simulations/bparticles/forces.cpp8
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);