diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-14 15:17:06 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-14 15:17:06 +0400 |
commit | 53333c78ce113ef1c47e2b6dbdad0912b0038712 (patch) | |
tree | 48f4928627461e43f026e7c6dac4eae06263e585 /source/blender/compositor/operations/COM_SetColorOperation.cpp | |
parent | 9fd6c535cabbcf4ec12c21bc9229c94944bc6c91 (diff) |
use vector for color operation internal storage.
Diffstat (limited to 'source/blender/compositor/operations/COM_SetColorOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_SetColorOperation.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/compositor/operations/COM_SetColorOperation.cpp b/source/blender/compositor/operations/COM_SetColorOperation.cpp index 7aa2a8a27cd..44c29b3befd 100644 --- a/source/blender/compositor/operations/COM_SetColorOperation.cpp +++ b/source/blender/compositor/operations/COM_SetColorOperation.cpp @@ -29,10 +29,7 @@ SetColorOperation::SetColorOperation() : NodeOperation() void SetColorOperation::executePixel(float output[4], float x, float y, PixelSampler sampler) { - output[0] = this->m_channel1; - output[1] = this->m_channel2; - output[2] = this->m_channel3; - output[3] = this->m_channel4; + copy_v4_v4(output, this->m_color); } void SetColorOperation::determineResolution(unsigned int resolution[2], unsigned int preferredResolution[2]) |