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:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/compositor/nodes/COM_ColorSpillNode.cpp
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (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/compositor/nodes/COM_ColorSpillNode.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_ColorSpillNode.cpp31
1 files changed, 16 insertions, 15 deletions
diff --git a/source/blender/compositor/nodes/COM_ColorSpillNode.cpp b/source/blender/compositor/nodes/COM_ColorSpillNode.cpp
index 7253c5b4ca5..d1a3099e998 100644
--- a/source/blender/compositor/nodes/COM_ColorSpillNode.cpp
+++ b/source/blender/compositor/nodes/COM_ColorSpillNode.cpp
@@ -22,25 +22,26 @@
ColorSpillNode::ColorSpillNode(bNode *editorNode) : Node(editorNode)
{
- /* pass */
+ /* pass */
}
-void ColorSpillNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
+void ColorSpillNode::convertToOperations(NodeConverter &converter,
+ const CompositorContext & /*context*/) const
{
- bNode *editorsnode = getbNode();
+ bNode *editorsnode = getbNode();
- NodeInput *inputSocketImage = this->getInputSocket(0);
- NodeInput *inputSocketFac = this->getInputSocket(1);
- NodeOutput *outputSocketImage = this->getOutputSocket(0);
+ NodeInput *inputSocketImage = this->getInputSocket(0);
+ NodeInput *inputSocketFac = this->getInputSocket(1);
+ NodeOutput *outputSocketImage = this->getOutputSocket(0);
- ColorSpillOperation *operation;
- operation = new ColorSpillOperation();
- operation->setSettings((NodeColorspill *)editorsnode->storage);
- operation->setSpillChannel(editorsnode->custom1 - 1); // Channel for spilling
- operation->setSpillMethod(editorsnode->custom2); // Channel method
- converter.addOperation(operation);
+ ColorSpillOperation *operation;
+ operation = new ColorSpillOperation();
+ operation->setSettings((NodeColorspill *)editorsnode->storage);
+ operation->setSpillChannel(editorsnode->custom1 - 1); // Channel for spilling
+ operation->setSpillMethod(editorsnode->custom2); // Channel method
+ converter.addOperation(operation);
- converter.mapInputSocket(inputSocketImage, operation->getInputSocket(0));
- converter.mapInputSocket(inputSocketFac, operation->getInputSocket(1));
- converter.mapOutputSocket(outputSocketImage, operation->getOutputSocket());
+ converter.mapInputSocket(inputSocketImage, operation->getInputSocket(0));
+ converter.mapInputSocket(inputSocketFac, operation->getInputSocket(1));
+ converter.mapOutputSocket(outputSocketImage, operation->getOutputSocket());
}