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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-07-10 13:12:33 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-07-10 13:12:33 +0400
commit717ac64cb14b09660419cc4fa8b48e47ccacd854 (patch)
tree26393b4ccff0b4e9dbd580aec78a270649992da6 /source/blender/compositor/operations/COM_MixAddOperation.cpp
parent63ad458dbafe9cecc8568fd4779b7568d06b81b2 (diff)
Tomato: added option to clamp result of Mix RGB and Color Math nodes
Diffstat (limited to 'source/blender/compositor/operations/COM_MixAddOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_MixAddOperation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_MixAddOperation.cpp b/source/blender/compositor/operations/COM_MixAddOperation.cpp
index 7f7315fb3ff..f8bd802928d 100644
--- a/source/blender/compositor/operations/COM_MixAddOperation.cpp
+++ b/source/blender/compositor/operations/COM_MixAddOperation.cpp
@@ -46,5 +46,7 @@ void MixAddOperation::executePixel(float *outputValue, float x, float y, PixelSa
outputValue[1] = inputColor1[1] + value * inputColor2[1];
outputValue[2] = inputColor1[2] + value * inputColor2[2];
outputValue[3] = inputColor1[3];
+
+ clampIfNeeded(outputValue);
}