diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-09-08 12:59:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-09-08 12:59:47 +0400 |
commit | 1a7eb3454eb887d9639c435ac0a6f1bd50c9b2bf (patch) | |
tree | 0db1d31cd18bd19da3b6ad5704142b8af114a190 /source/blender/nodes | |
parent | a9f10b6bc2fb55be26ae3a7e8b1467213678a0f6 (diff) |
style cleanup
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_channelMatte.c | 9 |
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; } |