diff options
Diffstat (limited to 'source/blender/compositor/nodes/COM_PixelateNode.cpp')
-rw-r--r-- | source/blender/compositor/nodes/COM_PixelateNode.cpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/source/blender/compositor/nodes/COM_PixelateNode.cpp b/source/blender/compositor/nodes/COM_PixelateNode.cpp index 0db623866e8..be7747f3f14 100644 --- a/source/blender/compositor/nodes/COM_PixelateNode.cpp +++ b/source/blender/compositor/nodes/COM_PixelateNode.cpp @@ -23,23 +23,24 @@ PixelateNode::PixelateNode(bNode *editorNode) : Node(editorNode) { - /* pass */ + /* pass */ } -void PixelateNode::convertToOperations(NodeConverter &converter, const CompositorContext &/*context*/) const +void PixelateNode::convertToOperations(NodeConverter &converter, + const CompositorContext & /*context*/) const { - NodeInput *inputSocket = this->getInputSocket(0); - NodeOutput *outputSocket = this->getOutputSocket(0); - DataType datatype = inputSocket->getDataType(); + NodeInput *inputSocket = this->getInputSocket(0); + NodeOutput *outputSocket = this->getOutputSocket(0); + DataType datatype = inputSocket->getDataType(); - if (inputSocket->isLinked()) { - NodeOutput *link = inputSocket->getLink(); - datatype = link->getDataType(); - } + if (inputSocket->isLinked()) { + NodeOutput *link = inputSocket->getLink(); + datatype = link->getDataType(); + } - PixelateOperation *operation = new PixelateOperation(datatype); - converter.addOperation(operation); + PixelateOperation *operation = new PixelateOperation(datatype); + converter.addOperation(operation); - converter.mapInputSocket(inputSocket, operation->getInputSocket(0)); - converter.mapOutputSocket(outputSocket, operation->getOutputSocket(0)); + converter.mapInputSocket(inputSocket, operation->getInputSocket(0)); + converter.mapOutputSocket(outputSocket, operation->getOutputSocket(0)); } |