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
parent760e084791837c7ae9d818d6a3056ced29cb210a (diff)
clang-format
Diffstat (limited to 'source/blender/simulations/bparticles')
-rw-r--r--source/blender/simulations/bparticles/forces.cpp8
-rw-r--r--source/blender/simulations/bparticles/forces.hpp4
2 files changed, 6 insertions, 6 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);
diff --git a/source/blender/simulations/bparticles/forces.hpp b/source/blender/simulations/bparticles/forces.hpp
index 0e36a981176..961e0a8ac20 100644
--- a/source/blender/simulations/bparticles/forces.hpp
+++ b/source/blender/simulations/bparticles/forces.hpp
@@ -39,10 +39,10 @@ class TurbulenceForce : public Force {
};
class PointForce : public Force {
- private:
+ private:
std::unique_ptr<ParticleFunction> m_compute_inputs;
- public:
+ public:
PointForce(std::unique_ptr<ParticleFunction> compute_inputs)
: m_compute_inputs(std::move(compute_inputs))
{