[Bf-blender-cvs] [042cc17babd] functions: clang-format
Jacques Lucke
noreply at git.blender.org
Tue Jul 30 15:06:43 CEST 2019
Commit: 042cc17babd00389a2649d5a3cba8594aa7d9acd
Author: Jacques Lucke
Date: Tue Jul 30 15:06:22 2019 +0200
Branches: functions
https://developer.blender.org/rB042cc17babd00389a2649d5a3cba8594aa7d9acd
clang-format
===================================================================
M source/blender/simulations/bparticles/forces.cpp
M source/blender/simulations/bparticles/forces.hpp
===================================================================
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))
{
More information about the Bf-blender-cvs
mailing list