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:
authorCampbell Barton <ideasman42@gmail.com>2012-05-17 17:44:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-05-17 17:44:15 +0400
commit979f6bab9c1aba27b8d018d1481987d841f68ee1 (patch)
tree162419d475bf68326b3b5e88b25f27057fee6831 /source/blender/compositor/operations/COM_BoxMaskOperation.cpp
parentfe0d1a381003408dedcd3142a727c77806617150 (diff)
style cleanup: braces, compositor
Diffstat (limited to 'source/blender/compositor/operations/COM_BoxMaskOperation.cpp')
-rw-r--r--source/blender/compositor/operations/COM_BoxMaskOperation.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/compositor/operations/COM_BoxMaskOperation.cpp b/source/blender/compositor/operations/COM_BoxMaskOperation.cpp
index 44157051089..5b769fef3ef 100644
--- a/source/blender/compositor/operations/COM_BoxMaskOperation.cpp
+++ b/source/blender/compositor/operations/COM_BoxMaskOperation.cpp
@@ -68,7 +68,8 @@ void BoxMaskOperation::executePixel(float* color, float x, float y, PixelSampler
case CMP_NODE_MASKTYPE_ADD:
if (inside) {
color[0] = max(inputMask[0],inputValue[0]);
- } else {
+ }
+ else {
color[0] = inputMask[0];
}
break;
@@ -76,14 +77,16 @@ void BoxMaskOperation::executePixel(float* color, float x, float y, PixelSampler
if (inside) {
color[0] = inputMask[0]-inputValue[0];
CLAMP(color[0], 0, 1);
- } else {
+ }
+ else {
color[0] = inputMask[0];
}
break;
case CMP_NODE_MASKTYPE_MULTIPLY:
if (inside) {
color[0] = inputMask[0]*inputValue[0];
- } else {
+ }
+ else {
color[0] = 0;
}
break;
@@ -91,10 +94,12 @@ void BoxMaskOperation::executePixel(float* color, float x, float y, PixelSampler
if (inside) {
if (inputMask[0]>0.0f) {
color[0] = 0;
- } else {
+ }
+ else {
color[0] = inputValue[0];
}
- } else {
+ }
+ else {
color[0] = inputMask[0];
}
break;