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:
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);