From 7862b2fa13c0437d9c17eae78e7b79a421dacf05 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 17 May 2012 22:55:28 +0000 Subject: style cleanup: compositor, pointer syntax, function brace placement, line length --- source/blender/compositor/nodes/COM_TextureNode.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'source/blender/compositor/nodes/COM_TextureNode.cpp') 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)); -- cgit v1.2.3