diff options
author | Robert Holcomb <bob_holcomb@hotmail.com> | 2009-07-31 16:51:18 +0400 |
---|---|---|
committer | Robert Holcomb <bob_holcomb@hotmail.com> | 2009-07-31 16:51:18 +0400 |
commit | a0c22badc1a6ec35c60338060af8cc1ac4b83d2d (patch) | |
tree | 37ae909ef352ca49d184c61194f17b0cb347942e /source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c | |
parent | 3eb8000eb429a97d20fb9d403eea43bffe04175f (diff) |
Bug fix in low value setting. Originally checked against the wrong channel (chroma) instead of the luminence channel.
Changed default value for high value to 1.0 from 0.0.
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c b/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c index 973d74d71ff..9aebd999b29 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c @@ -53,7 +53,7 @@ static void do_luma_matte(bNode *node, float *out, float *in) if(in[0]>c->t1) { alpha=1.0; } - else if(in[1]<c->t2){ + else if(in[0]<c->t2){ alpha=0.0; } else {/*blend */ @@ -99,7 +99,7 @@ static void node_composit_init_luma_matte(bNode *node) { NodeChroma *c= MEM_callocN(sizeof(NodeChroma), "node chroma"); node->storage=c; - c->t1= 0.0f; + c->t1= 1.0f; c->t2= 0.0f; }; |