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 --- .../compositor/operations/COM_DotproductOperation.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'source/blender/compositor/operations/COM_DotproductOperation.cpp') diff --git a/source/blender/compositor/operations/COM_DotproductOperation.cpp b/source/blender/compositor/operations/COM_DotproductOperation.cpp index 284fb0ddca4..b03b176f08a 100644 --- a/source/blender/compositor/operations/COM_DotproductOperation.cpp +++ b/source/blender/compositor/operations/COM_DotproductOperation.cpp @@ -22,7 +22,8 @@ #include "COM_DotproductOperation.h" -DotproductOperation::DotproductOperation() : NodeOperation() { +DotproductOperation::DotproductOperation() : NodeOperation() +{ this->addInputSocket(COM_DT_VECTOR); this->addInputSocket(COM_DT_VECTOR); this->addOutputSocket(COM_DT_VALUE); @@ -30,19 +31,22 @@ DotproductOperation::DotproductOperation() : NodeOperation() { this->input1Operation = NULL; this->input2Operation = NULL; } -void DotproductOperation::initExecution() { +void DotproductOperation::initExecution() +{ this->input1Operation = this->getInputSocketReader(0); this->input2Operation = this->getInputSocketReader(1); } -void DotproductOperation::deinitExecution() { +void DotproductOperation::deinitExecution() +{ this->input1Operation = NULL; this->input2Operation = NULL; } /** @todo: current implementation is the inverse of a dotproduct. not 'logically' correct */ -void DotproductOperation::executePixel(float *color,float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) { +void DotproductOperation::executePixel(float *color,float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) +{ float input1[4]; float input2[4]; this->input1Operation->read(input1, x, y, sampler, inputBuffers); -- cgit v1.2.3