diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-23 04:21:22 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-23 04:22:25 +0300 |
commit | 3302fbaeb1d5f58d926c06b6153ec5d6f1a9b0be (patch) | |
tree | 5be399e227415fef745bcdb2b7f20a578628718b /source/blender/compositor/nodes/COM_SwitchNode.cpp | |
parent | 64b4b719ebd5201d27aa25d7fa2d765eabded9b0 (diff) |
Cleanup: style, use braces for compositor
Diffstat (limited to 'source/blender/compositor/nodes/COM_SwitchNode.cpp')
-rw-r--r-- | source/blender/compositor/nodes/COM_SwitchNode.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/compositor/nodes/COM_SwitchNode.cpp b/source/blender/compositor/nodes/COM_SwitchNode.cpp index 342f6bc159c..947774e98ae 100644 --- a/source/blender/compositor/nodes/COM_SwitchNode.cpp +++ b/source/blender/compositor/nodes/COM_SwitchNode.cpp @@ -29,10 +29,12 @@ void SwitchNode::convertToOperations(NodeConverter &converter, bool condition = this->getbNode()->custom1; NodeOperationOutput *result; - if (!condition) + if (!condition) { result = converter.addInputProxy(getInputSocket(0), false); - else + } + else { result = converter.addInputProxy(getInputSocket(1), false); + } converter.mapOutputSocket(getOutputSocket(0), result); } |