diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/freestyle/intern/scene_graph/NodeLight.cpp | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/freestyle/intern/scene_graph/NodeLight.cpp')
-rw-r--r-- | source/blender/freestyle/intern/scene_graph/NodeLight.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/source/blender/freestyle/intern/scene_graph/NodeLight.cpp b/source/blender/freestyle/intern/scene_graph/NodeLight.cpp index 9e513f6a488..f6585d9f932 100644 --- a/source/blender/freestyle/intern/scene_graph/NodeLight.cpp +++ b/source/blender/freestyle/intern/scene_graph/NodeLight.cpp @@ -27,51 +27,51 @@ int NodeLight::numberOfLights = 0; NodeLight::NodeLight() : Node() { - if (numberOfLights > 7) { - _number = 7; - } - else { - _number = numberOfLights; - numberOfLights++; - } + if (numberOfLights > 7) { + _number = 7; + } + else { + _number = numberOfLights; + numberOfLights++; + } - Ambient[0] = Ambient[1] = Ambient[2] = 0.0f; - Ambient[3] = 1.0f; + Ambient[0] = Ambient[1] = Ambient[2] = 0.0f; + Ambient[3] = 1.0f; - for (int i = 0; i < 4; i++) { - Diffuse[i] = 1.0f; - Specular[i] = 1.0f; - } + for (int i = 0; i < 4; i++) { + Diffuse[i] = 1.0f; + Specular[i] = 1.0f; + } - Position[0] = Position[1] = Position[3] = 0.0f; - Position[2] = 1.0f; + Position[0] = Position[1] = Position[3] = 0.0f; + Position[2] = 1.0f; - on = true; + on = true; } -NodeLight::NodeLight(NodeLight& iBrother) : Node(iBrother) +NodeLight::NodeLight(NodeLight &iBrother) : Node(iBrother) { - if (numberOfLights > 7) { - _number = 7; - } - else { - _number = numberOfLights; - numberOfLights++; - } + if (numberOfLights > 7) { + _number = 7; + } + else { + _number = numberOfLights; + numberOfLights++; + } - for (int i = 0; i < 4; i++) { - Ambient[i] = iBrother.ambient()[i]; - Diffuse[i] = iBrother.diffuse()[i]; - Specular[i] = iBrother.specular()[i]; - Position[i] = iBrother.position()[i]; - } + for (int i = 0; i < 4; i++) { + Ambient[i] = iBrother.ambient()[i]; + Diffuse[i] = iBrother.diffuse()[i]; + Specular[i] = iBrother.specular()[i]; + Position[i] = iBrother.position()[i]; + } - on = iBrother.isOn(); + on = iBrother.isOn(); } -void NodeLight::accept(SceneVisitor& v) +void NodeLight::accept(SceneVisitor &v) { - v.visitNodeLight(*this); + v.visitNodeLight(*this); } } /* namespace Freestyle */ |