Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Castilla <manzanillawork@gmail.com>2021-05-30 17:22:07 +0300
committerManuel Castilla <manzanillawork@gmail.com>2021-05-31 11:44:36 +0300
commitb17c49004318cd6e2ef8587a7defe498e1d97333 (patch)
treee1fb33ee2898a997587b7fc2be214322dee16a0c /source/blender/compositor/operations/COM_SetVectorOperation.cc
parent89e22a99e7b8f03cb1bd4ecb144181e67fee6d1d (diff)
Compositor: Do constant folding for full frame execution
All operations with constant pixel/elements are evaluated into primitive Value/Vector/Color constant operations prior rendering execution. This is the case of operations that are constant only when all their inputs are so. Such operations should set can_be_constant flag to true. is_constant flag is only used for primitive operations (Color/Vector/Value) which are the only constant operations during rendering execution.
Diffstat (limited to 'source/blender/compositor/operations/COM_SetVectorOperation.cc')
-rw-r--r--source/blender/compositor/operations/COM_SetVectorOperation.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/compositor/operations/COM_SetVectorOperation.cc b/source/blender/compositor/operations/COM_SetVectorOperation.cc
index 7152d5e61d4..7b8cf44048c 100644
--- a/source/blender/compositor/operations/COM_SetVectorOperation.cc
+++ b/source/blender/compositor/operations/COM_SetVectorOperation.cc
@@ -32,9 +32,9 @@ void SetVectorOperation::executePixelSampled(float output[4],
float /*y*/,
PixelSampler /*sampler*/)
{
- output[0] = this->m_x;
- output[1] = this->m_y;
- output[2] = this->m_z;
+ output[0] = vector_.x;
+ output[1] = vector_.y;
+ output[2] = vector_.z;
}
void SetVectorOperation::determineResolution(unsigned int resolution[2],