diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-24 13:07:54 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-24 13:07:54 +0400 |
commit | 6d79568f66a1ddd39c151846c90f1d291dc7d8d9 (patch) | |
tree | 75dc3384b982e8e6587bade98e19cfabe24e4156 | |
parent | b0fc0baafe44cdb6e9de7a8d0b497940e00a09d9 (diff) |
style cleanup
3 files changed, 22 insertions, 22 deletions
diff --git a/source/blender/compositor/nodes/COM_PixelateNode.cpp b/source/blender/compositor/nodes/COM_PixelateNode.cpp index 12494b6a2c3..6accc0d5ead 100644 --- a/source/blender/compositor/nodes/COM_PixelateNode.cpp +++ b/source/blender/compositor/nodes/COM_PixelateNode.cpp @@ -27,16 +27,16 @@ PixelateNode::PixelateNode(bNode *editorNode) : Node(editorNode) { - /* pass */ + /* pass */ } void PixelateNode::convertToOperations(ExecutionSystem *graph, CompositorContext *context) { - InputSocket *inputSocket = this->getInputSocket(0); - OutputSocket *outputSocket = this->getOutputSocket(0); - - PixelateOperation *operation = new PixelateOperation(inputSocket->getDataType()); - inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph); - outputSocket->relinkConnections(operation->getOutputSocket(0)); - graph->addOperation(operation); + InputSocket *inputSocket = this->getInputSocket(0); + OutputSocket *outputSocket = this->getOutputSocket(0); + + PixelateOperation *operation = new PixelateOperation(inputSocket->getDataType()); + inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph); + outputSocket->relinkConnections(operation->getOutputSocket(0)); + graph->addOperation(operation); } diff --git a/source/blender/compositor/operations/COM_PixelateOperation.h b/source/blender/compositor/operations/COM_PixelateOperation.h index 8da65bdcc70..c3e6975bbb8 100644 --- a/source/blender/compositor/operations/COM_PixelateOperation.h +++ b/source/blender/compositor/operations/COM_PixelateOperation.h @@ -27,12 +27,12 @@ class PixelateOperation : public NodeOperation { private: - SocketReader *m_inputOperation; + SocketReader *m_inputOperation; public: - PixelateOperation(DataType dataType); - void initExecution(); - void deinitExecution(); - void executePixel(float output[4], float x, float y, PixelSampler sampler); + PixelateOperation(DataType dataType); + void initExecution(); + void deinitExecution(); + void executePixel(float output[4], float x, float y, PixelSampler sampler); }; #endif diff --git a/source/blender/nodes/composite/nodes/node_composite_pixelate.c b/source/blender/nodes/composite/nodes/node_composite_pixelate.c index 6933f6f2fda..5eac4867a23 100644 --- a/source/blender/nodes/composite/nodes/node_composite_pixelate.c +++ b/source/blender/nodes/composite/nodes/node_composite_pixelate.c @@ -37,21 +37,21 @@ /* **************** Pixelate ******************** */ static bNodeSocketTemplate cmp_node_pixelate_in[] = { - { SOCK_RGBA, 1, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, PROP_FACTOR}, - { -1, 0, "" } + { SOCK_RGBA, 1, N_("Color"), 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, PROP_FACTOR}, + { -1, 0, "" } }; static bNodeSocketTemplate cmp_node_pixelate_out[] = { - { SOCK_RGBA, 0, N_("Color")}, - { -1, 0, "" } + { SOCK_RGBA, 0, N_("Color")}, + { -1, 0, "" } }; void register_node_type_cmp_pixelate(bNodeTreeType *ttype) { - static bNodeType ntype; + static bNodeType ntype; - node_type_base(ttype, &ntype, CMP_NODE_PIXELATE, "Pixelate", NODE_CLASS_OP_FILTER, NODE_OPTIONS); - node_type_socket_templates(&ntype, cmp_node_pixelate_in, cmp_node_pixelate_out); - node_type_size(&ntype, 130, 100, 130); + node_type_base(ttype, &ntype, CMP_NODE_PIXELATE, "Pixelate", NODE_CLASS_OP_FILTER, NODE_OPTIONS); + node_type_socket_templates(&ntype, cmp_node_pixelate_in, cmp_node_pixelate_out); + node_type_size(&ntype, 130, 100, 130); - nodeRegisterType(ttype, &ntype); + nodeRegisterType(ttype, &ntype); } |