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:
Diffstat (limited to 'source/blender/compositor/nodes/COM_ColorMatteNode.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_ColorMatteNode.cpp51
1 files changed, 26 insertions, 25 deletions
diff --git a/source/blender/compositor/nodes/COM_ColorMatteNode.cpp b/source/blender/compositor/nodes/COM_ColorMatteNode.cpp
index e9b9280f5d7..f5cb84975e9 100644
--- a/source/blender/compositor/nodes/COM_ColorMatteNode.cpp
+++ b/source/blender/compositor/nodes/COM_ColorMatteNode.cpp
@@ -24,39 +24,40 @@
ColorMatteNode::ColorMatteNode(bNode *editorNode) : Node(editorNode)
{
- /* pass */
+ /* pass */
}
-void ColorMatteNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
+void ColorMatteNode::convertToOperations(NodeConverter &converter,
+ const CompositorContext & /*context*/) const
{
- bNode *editorsnode = getbNode();
+ bNode *editorsnode = getbNode();
- NodeInput *inputSocketImage = this->getInputSocket(0);
- NodeInput *inputSocketKey = this->getInputSocket(1);
- NodeOutput *outputSocketImage = this->getOutputSocket(0);
- NodeOutput *outputSocketMatte = this->getOutputSocket(1);
+ NodeInput *inputSocketImage = this->getInputSocket(0);
+ NodeInput *inputSocketKey = this->getInputSocket(1);
+ NodeOutput *outputSocketImage = this->getOutputSocket(0);
+ NodeOutput *outputSocketMatte = this->getOutputSocket(1);
- ConvertRGBToHSVOperation *operationRGBToHSV_Image = new ConvertRGBToHSVOperation();
- ConvertRGBToHSVOperation *operationRGBToHSV_Key = new ConvertRGBToHSVOperation();
- converter.addOperation(operationRGBToHSV_Image);
- converter.addOperation(operationRGBToHSV_Key);
+ ConvertRGBToHSVOperation *operationRGBToHSV_Image = new ConvertRGBToHSVOperation();
+ ConvertRGBToHSVOperation *operationRGBToHSV_Key = new ConvertRGBToHSVOperation();
+ converter.addOperation(operationRGBToHSV_Image);
+ converter.addOperation(operationRGBToHSV_Key);
- ColorMatteOperation *operation = new ColorMatteOperation();
- operation->setSettings((NodeChroma *)editorsnode->storage);
- converter.addOperation(operation);
+ ColorMatteOperation *operation = new ColorMatteOperation();
+ operation->setSettings((NodeChroma *)editorsnode->storage);
+ converter.addOperation(operation);
- SetAlphaOperation *operationAlpha = new SetAlphaOperation();
- converter.addOperation(operationAlpha);
+ SetAlphaOperation *operationAlpha = new SetAlphaOperation();
+ converter.addOperation(operationAlpha);
- converter.mapInputSocket(inputSocketImage, operationRGBToHSV_Image->getInputSocket(0));
- converter.mapInputSocket(inputSocketKey, operationRGBToHSV_Key->getInputSocket(0));
- converter.addLink(operationRGBToHSV_Image->getOutputSocket(), operation->getInputSocket(0));
- converter.addLink(operationRGBToHSV_Key->getOutputSocket(), operation->getInputSocket(1));
- converter.mapOutputSocket(outputSocketMatte, operation->getOutputSocket(0));
+ converter.mapInputSocket(inputSocketImage, operationRGBToHSV_Image->getInputSocket(0));
+ converter.mapInputSocket(inputSocketKey, operationRGBToHSV_Key->getInputSocket(0));
+ converter.addLink(operationRGBToHSV_Image->getOutputSocket(), operation->getInputSocket(0));
+ converter.addLink(operationRGBToHSV_Key->getOutputSocket(), operation->getInputSocket(1));
+ converter.mapOutputSocket(outputSocketMatte, operation->getOutputSocket(0));
- converter.mapInputSocket(inputSocketImage, operationAlpha->getInputSocket(0));
- converter.addLink(operation->getOutputSocket(), operationAlpha->getInputSocket(1));
- converter.mapOutputSocket(outputSocketImage, operationAlpha->getOutputSocket());
+ converter.mapInputSocket(inputSocketImage, operationAlpha->getInputSocket(0));
+ converter.addLink(operation->getOutputSocket(), operationAlpha->getInputSocket(1));
+ converter.mapOutputSocket(outputSocketImage, operationAlpha->getOutputSocket());
- converter.addPreview(operationAlpha->getOutputSocket());
+ converter.addPreview(operationAlpha->getOutputSocket());
}