diff options
Diffstat (limited to 'source/blender/compositor/operations/COM_ChangeHSVOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_ChangeHSVOperation.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_ChangeHSVOperation.cpp b/source/blender/compositor/operations/COM_ChangeHSVOperation.cpp index da59524586c..9b7f87e38bc 100644 --- a/source/blender/compositor/operations/COM_ChangeHSVOperation.cpp +++ b/source/blender/compositor/operations/COM_ChangeHSVOperation.cpp @@ -22,21 +22,25 @@ #include "COM_ChangeHSVOperation.h" -ChangeHSVOperation::ChangeHSVOperation(): NodeOperation() { +ChangeHSVOperation::ChangeHSVOperation(): NodeOperation() +{ this->addInputSocket(COM_DT_COLOR); this->addOutputSocket(COM_DT_COLOR); this->inputOperation = NULL; } -void ChangeHSVOperation::initExecution() { +void ChangeHSVOperation::initExecution() +{ this->inputOperation = getInputSocketReader(0); } -void ChangeHSVOperation::deinitExecution() { +void ChangeHSVOperation::deinitExecution() +{ this->inputOperation = NULL; } -void ChangeHSVOperation::executePixel(float* outputValue, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) { +void ChangeHSVOperation::executePixel(float *outputValue, float x, float y, PixelSampler sampler, MemoryBuffer *inputBuffers[]) +{ float inputColor1[4]; inputOperation->read(inputColor1, x, y, sampler, inputBuffers); |