diff options
Diffstat (limited to 'source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp')
-rw-r--r-- | source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp b/source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp index 6881a047fc5..3c2bf0aad07 100644 --- a/source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp +++ b/source/blender/compositor/nodes/COM_ColorCorrectionNode.cpp @@ -22,21 +22,22 @@ ColorCorrectionNode::ColorCorrectionNode(bNode *editorNode) : Node(editorNode) { - /* pass */ + /* pass */ } -void ColorCorrectionNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const +void ColorCorrectionNode::convertToOperations(NodeConverter &converter, + const CompositorContext & /*context*/) const { - bNode *editorNode = getbNode(); + bNode *editorNode = getbNode(); - ColorCorrectionOperation *operation = new ColorCorrectionOperation(); - operation->setData((NodeColorCorrection *)editorNode->storage); - operation->setRedChannelEnabled((editorNode->custom1 & 1) > 0); - operation->setGreenChannelEnabled((editorNode->custom1 & 2) > 0); - operation->setBlueChannelEnabled((editorNode->custom1 & 4) > 0); - converter.addOperation(operation); + ColorCorrectionOperation *operation = new ColorCorrectionOperation(); + operation->setData((NodeColorCorrection *)editorNode->storage); + operation->setRedChannelEnabled((editorNode->custom1 & 1) > 0); + operation->setGreenChannelEnabled((editorNode->custom1 & 2) > 0); + operation->setBlueChannelEnabled((editorNode->custom1 & 4) > 0); + converter.addOperation(operation); - converter.mapInputSocket(getInputSocket(0), operation->getInputSocket(0)); - converter.mapInputSocket(getInputSocket(1), operation->getInputSocket(1)); - converter.mapOutputSocket(getOutputSocket(0), operation->getOutputSocket(0)); + converter.mapInputSocket(getInputSocket(0), operation->getInputSocket(0)); + converter.mapInputSocket(getInputSocket(1), operation->getInputSocket(1)); + converter.mapOutputSocket(getOutputSocket(0), operation->getOutputSocket(0)); } |