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_RotateNode.cpp')
-rw-r--r--source/blender/compositor/nodes/COM_RotateNode.cpp29
1 files changed, 15 insertions, 14 deletions
diff --git a/source/blender/compositor/nodes/COM_RotateNode.cpp b/source/blender/compositor/nodes/COM_RotateNode.cpp
index d097d7b721f..e1c84ce3584 100644
--- a/source/blender/compositor/nodes/COM_RotateNode.cpp
+++ b/source/blender/compositor/nodes/COM_RotateNode.cpp
@@ -24,23 +24,24 @@
RotateNode::RotateNode(bNode *editorNode) : Node(editorNode)
{
- /* pass */
+ /* pass */
}
-void RotateNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const
+void RotateNode::convertToOperations(NodeConverter &converter,
+ const CompositorContext & /*context*/) const
{
- NodeInput *inputSocket = this->getInputSocket(0);
- NodeInput *inputDegreeSocket = this->getInputSocket(1);
- NodeOutput *outputSocket = this->getOutputSocket(0);
- RotateOperation *operation = new RotateOperation();
- SetSamplerOperation *sampler = new SetSamplerOperation();
- sampler->setSampler((PixelSampler)this->getbNode()->custom1);
+ NodeInput *inputSocket = this->getInputSocket(0);
+ NodeInput *inputDegreeSocket = this->getInputSocket(1);
+ NodeOutput *outputSocket = this->getOutputSocket(0);
+ RotateOperation *operation = new RotateOperation();
+ SetSamplerOperation *sampler = new SetSamplerOperation();
+ sampler->setSampler((PixelSampler)this->getbNode()->custom1);
- converter.addOperation(sampler);
- converter.addOperation(operation);
+ converter.addOperation(sampler);
+ converter.addOperation(operation);
- converter.addLink(sampler->getOutputSocket(), operation->getInputSocket(0));
- converter.mapInputSocket(inputSocket, sampler->getInputSocket(0));
- converter.mapInputSocket(inputDegreeSocket, operation->getInputSocket(1));
- converter.mapOutputSocket(outputSocket, operation->getOutputSocket(0));
+ converter.addLink(sampler->getOutputSocket(), operation->getInputSocket(0));
+ converter.mapInputSocket(inputSocket, sampler->getInputSocket(0));
+ converter.mapInputSocket(inputDegreeSocket, operation->getInputSocket(1));
+ converter.mapOutputSocket(outputSocket, operation->getOutputSocket(0));
}