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.
This commit is contained in:
Robert Holcomb 2009-07-31 12:51:18 +00:00
parent 3eb8000eb4
commit a0c22badc1

@ -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;
};