diff options
Diffstat (limited to 'source/blender/compositor/nodes/COM_CropNode.cpp')
-rw-r--r-- | source/blender/compositor/nodes/COM_CropNode.cpp | 38 |
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()); } |