Revision: 22085
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22085
Author:   scourage
Date:     2009-07-31 14:51:18 +0200 (Fri, 31 Jul 2009)

Log Message:
-----------
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.
 

Modified Paths:
--------------
    trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c

Modified: trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c
===================================================================
--- trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c        
2009-07-31 12:29:28 UTC (rev 22084)
+++ trunk/blender/source/blender/nodes/intern/CMP_nodes/CMP_lummaMatte.c        
2009-07-31 12:51:18 UTC (rev 22085)
@@ -53,7 +53,7 @@
        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 @@
 {
    NodeChroma *c= MEM_callocN(sizeof(NodeChroma), "node chroma");
    node->storage=c;
-   c->t1= 0.0f;
+   c->t1= 1.0f;
    c->t2= 0.0f;
 };
 


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to