diff options
author | Robert Holcomb <bob_holcomb@hotmail.com> | 2007-01-14 06:52:55 +0300 |
---|---|---|
committer | Robert Holcomb <bob_holcomb@hotmail.com> | 2007-01-14 06:52:55 +0300 |
commit | 8903169218de302bb0cb8d4607d450b431069dc6 (patch) | |
tree | e4c0c660d9082b4a3ba391d24f84a76ef827ba89 /source/blender/blenkernel/intern/node.c | |
parent | 4d56baa8da4b32c6a6f1b69a04186e02c7ebe6c6 (diff) |
Corrected initialization values for the chroma key node when it is created.
Diffstat (limited to 'source/blender/blenkernel/intern/node.c')
-rw-r--r-- | source/blender/blenkernel/intern/node.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c index f922a455589..08aeb0505fd 100644 --- a/source/blender/blenkernel/intern/node.c +++ b/source/blender/blenkernel/intern/node.c @@ -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"); |