Corrected initialization values for the chroma key node when it is created.
authorRobert Holcomb <bob_holcomb@hotmail.com>
Sun, 14 Jan 2007 03:52:55 +0000 (03:52 +0000)
committerRobert Holcomb <bob_holcomb@hotmail.com>
Sun, 14 Jan 2007 03:52:55 +0000 (03:52 +0000)
source/blender/blenkernel/intern/node.c

index f922a455589e2e2d7fd2f9807e154f5f7f316227..08aeb0505fdf106d66494e21242f009c3428660d 100644 (file)
@@ -868,21 +868,21 @@ bNode *nodeAddNodeType(bNodeTree *ntree, int type, bNodeTree *ngroup)
                else if(type==CMP_NODE_COLOR_SPILL){
                        NodeChroma *c= MEM_callocN(sizeof(NodeChroma), "node chroma");
                        node->storage=c;
-                       c->t1= 30.0f;
-                       c->t2= 10.0f;
+                       c->t1= 0.0f;
+                       c->t2= 0.0f;
                        c->t3= 0.0f;
                        c->fsize= 0.0f;
-                       c->fstrength= 1.0f;
-                       node->custom1= 1; /* red channel */
+                       c->fstrength= 0.0f;
+                       node->custom1= 2; /* green channel */
                }
                else if(type==CMP_NODE_CHROMA){
                        NodeChroma *c= MEM_callocN(sizeof(NodeChroma), "node chroma");
                        node->storage= c;
-                       c->t1= 0.0f;
-                       c->t2= 0.0f;
+                       c->t1= 30.0f;
+                       c->t2= 10.0f;
                        c->t3= 0.0f;
                        c->fsize= 0.0f;
-                       c->fstrength= 0.0f;
+                       c->fstrength= 1.0f;
                }
       else if(type==CMP_NODE_CHANNEL_MATTE){
          NodeChroma *c= MEM_callocN(sizeof(NodeChroma), "node chroma");