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:
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/composite/nodes/node_composite_channelMatte.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_channelMatte.c b/source/blender/nodes/composite/nodes/node_composite_channelMatte.c
index cda6fa85d74..06b77de463b 100644
--- a/source/blender/nodes/composite/nodes/node_composite_channelMatte.c
+++ b/source/blender/nodes/composite/nodes/node_composite_channelMatte.c
@@ -82,15 +82,18 @@ static void do_channel_matte(bNode *node, float *out, float *in)
}
case 1: { /* Alpha=G-MAX(R, B) */
switch (node->custom2) {
- case 1: {
+ case 1:
+ {
alpha=in[0]-MAX2(in[1], in[2]);
break;
}
- case 2: {
+ case 2:
+ {
alpha=in[1]-MAX2(in[0], in[2]);
break;
}
- case 3: {
+ case 3:
+ {
alpha=in[2]-MAX2(in[0], in[1]);
break;
}