diff options
author | Manuel Castilla <manzanillawork@gmail.com> | 2021-07-06 17:16:49 +0300 |
---|---|---|
committer | Manuel Castilla <manzanillawork@gmail.com> | 2021-07-06 19:11:49 +0300 |
commit | 5780de2ae052e76747ee50778c58264c74a6f9e8 (patch) | |
tree | 5efbde4c6023cc3fd2cbfe4a3e9714f403f919d7 /source/blender/compositor/operations/COM_GammaOperation.cc | |
parent | fc5be0b59883c28d5d0702acb96dc3d72295dda8 (diff) |
Compositor: Enable constant folding on operations
Only on current full frame operations that can be constant.
Diffstat (limited to 'source/blender/compositor/operations/COM_GammaOperation.cc')
-rw-r--r-- | source/blender/compositor/operations/COM_GammaOperation.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_GammaOperation.cc b/source/blender/compositor/operations/COM_GammaOperation.cc index 7083c677f03..396d3942b06 100644 --- a/source/blender/compositor/operations/COM_GammaOperation.cc +++ b/source/blender/compositor/operations/COM_GammaOperation.cc @@ -28,6 +28,7 @@ GammaOperation::GammaOperation() this->addOutputSocket(DataType::Color); this->m_inputProgram = nullptr; this->m_inputGammaProgram = nullptr; + flags.can_be_constant = true; } void GammaOperation::initExecution() { |