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_CropNode.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_CropNode.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_CropNode.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/source/blender/compositor/nodes/COM_CropNode.cpp b/source/blender/compositor/nodes/COM_CropNode.cpp
index a7b4090463b..0f0883b0151 100644
--- a/source/blender/compositor/nodes/COM_CropNode.cpp
+++ b/source/blender/compositor/nodes/COM_CropNode.cpp
@@ -19,29 +19,29 @@
#include "COM_CropNode.h"
#include "COM_CropOperation.h"
-
CropNode::CropNode(bNode *editorNode) : Node(editorNode)
{
- /* pass */
+ /* pass */
}
-void CropNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
+void CropNode::convertToOperations(NodeConverter &converter,
+ const CompositorContext & /*context*/) const
{
- bNode *node = getbNode();
- NodeTwoXYs *cropSettings = (NodeTwoXYs *)node->storage;
- bool relative = (bool)node->custom2;
- bool cropImage = (bool)node->custom1;
- CropBaseOperation *operation;
- if (cropImage) {
- operation = new CropImageOperation();
- }
- else {
- operation = new CropOperation();
- }
- operation->setCropSettings(cropSettings);
- operation->setRelative(relative);
- converter.addOperation(operation);
+ bNode *node = getbNode();
+ NodeTwoXYs *cropSettings = (NodeTwoXYs *)node->storage;
+ bool relative = (bool)node->custom2;
+ bool cropImage = (bool)node->custom1;
+ CropBaseOperation *operation;
+ if (cropImage) {
+ operation = new CropImageOperation();
+ }
+ else {
+ operation = new CropOperation();
+ }
+ operation->setCropSettings(cropSettings);
+ operation->setRelative(relative);
+ converter.addOperation(operation);
- converter.mapInputSocket(getInputSocket(0), operation->getInputSocket(0));
- converter.mapOutputSocket(getOutputSocket(), operation->getOutputSocket());
+ converter.mapInputSocket(getInputSocket(0), operation->getInputSocket(0));
+ converter.mapOutputSocket(getOutputSocket(), operation->getOutputSocket());
}