diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 02:55:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-05-18 02:55:28 +0400 |
commit | 7862b2fa13c0437d9c17eae78e7b79a421dacf05 (patch) | |
tree | 08f9c26af3e71795d0f65803a415b5612d6b53ab /source/blender/compositor/nodes/COM_TextureNode.cpp | |
parent | 69b95e1a8a00c9ff146d803b8ec11183d7a68908 (diff) |
style cleanup: compositor, pointer syntax, function brace placement, line length
Diffstat (limited to 'source/blender/compositor/nodes/COM_TextureNode.cpp')
-rw-r--r-- | source/blender/compositor/nodes/COM_TextureNode.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/compositor/nodes/COM_TextureNode.cpp b/source/blender/compositor/nodes/COM_TextureNode.cpp index ac78c1afd7d..0f9a2ca4c26 100644 --- a/source/blender/compositor/nodes/COM_TextureNode.cpp +++ b/source/blender/compositor/nodes/COM_TextureNode.cpp @@ -24,13 +24,15 @@ #include "COM_ExecutionSystem.h" #include "COM_TextureOperation.h" -TextureNode::TextureNode(bNode *editorNode): Node(editorNode) { +TextureNode::TextureNode(bNode *editorNode): Node(editorNode) +{ } -void TextureNode::convertToOperations(ExecutionSystem *system, CompositorContext * context) { - bNode* editorNode = this->getbNode(); - Tex* texture = (Tex*)editorNode->id; - TextureOperation* operation = new TextureOperation(); +void TextureNode::convertToOperations(ExecutionSystem *system, CompositorContext * context) +{ + bNode *editorNode = this->getbNode(); + Tex *texture = (Tex*)editorNode->id; + TextureOperation *operation = new TextureOperation(); this->getOutputSocket(1)->relinkConnections(operation->getOutputSocket()); this->getInputSocket(0)->relinkConnections(operation->getInputSocket(0), true, 0, system); this->getInputSocket(1)->relinkConnections(operation->getInputSocket(1), true, 1, system); @@ -39,7 +41,7 @@ void TextureNode::convertToOperations(ExecutionSystem *system, CompositorContext addPreviewOperation(system, operation->getOutputSocket(), 9); if (this->getOutputSocket(0)->isConnected()) { - TextureAlphaOperation* alphaOperation = new TextureAlphaOperation(); + TextureAlphaOperation *alphaOperation = new TextureAlphaOperation(); this->getOutputSocket(0)->relinkConnections(alphaOperation->getOutputSocket()); addLink(system, operation->getInputSocket(0)->getConnection()->getFromSocket(), alphaOperation->getInputSocket(0)); addLink(system, operation->getInputSocket(1)->getConnection()->getFromSocket(), alphaOperation->getInputSocket(1)); |