diff options
author | Robert Holcomb <bob_holcomb@hotmail.com> | 2007-03-26 03:54:39 +0400 |
---|---|---|
committer | Robert Holcomb <bob_holcomb@hotmail.com> | 2007-03-26 03:54:39 +0400 |
commit | c1e901811811f10c90789784667ed9c0f708010f (patch) | |
tree | 8f25ece1d7cd18f13e6b962821b618703b4adcb6 /source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c | |
parent | 8d4f2f9fe1e6cd4e162741e7dc879c8e2dc5b235 (diff) |
All UI code reverted to drawnode.c
Diffstat (limited to 'source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c')
-rw-r--r-- | source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c | 32 |
1 files changed, 1 insertions, 31 deletions
diff --git a/source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c b/source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c index 7109b8733d5..6080d9782b6 100644 --- a/source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c +++ b/source/blender/nodes/intern/CMP_nodes/CMP_chromaMatte.c @@ -160,36 +160,6 @@ static void node_composit_exec_chroma_matte(void *data, bNode *node, bNodeStack free_compbuf(cbuf); }; -static int node_composit_buts_chroma_matte(uiBlock *block, bNodeTree *ntree, bNode *node, rctf *butr) -{ - if(block) { - short dx=(butr->xmax-butr->xmin)/2; - NodeChroma *c= node->storage; - uiBlockBeginAlign(block); - - uiDefButF(block, NUMSLI, B_NODE_EXEC+node->nr, "Acceptance ", - butr->xmin, butr->ymin+60, butr->xmax-butr->xmin, 20, - &c->t1, 1.0f, 80.0f, 100, 0, "Tolerance for colors to be considered a keying color"); - uiDefButF(block, NUMSLI, B_NODE_EXEC+node->nr, "Cutoff ", - butr->xmin, butr->ymin+40, butr->xmax-butr->xmin, 20, - &c->t2, 0.0f, 30.0f, 100, 0, "Colors below this will be considered as exact matches for keying color"); - - uiDefButF(block, NUMSLI, B_NODE_EXEC+node->nr, "Lift ", - butr->xmin, butr->ymin+20, dx, 20, - &c->fsize, 0.0f, 1.0f, 100, 0, "Alpha Lift"); - uiDefButF(block, NUMSLI, B_NODE_EXEC+node->nr, "Gain ", - butr->xmin+dx, butr->ymin+20, dx, 20, - &c->fstrength, 0.0f, 1.0f, 100, 0, "Alpha Gain"); - - uiDefButF(block, NUMSLI, B_NODE_EXEC+node->nr, "Shadow Adjust ", - butr->xmin, butr->ymin, butr->xmax-butr->xmin, 20, - &c->t3, 0.0f, 1.0f, 100, 0, "Adjusts the brightness of any shadows captured"); - - if(c->t2 > c->t1) - c->t2=c->t1; - } - return 80; -} static void node_composit_init_chroma_matte(bNode *node) { @@ -211,7 +181,7 @@ bNodeType cmp_node_chroma={ /* output sock */ cmp_node_chroma_out, /* storage */ "NodeChroma", /* execfunc */ node_composit_exec_chroma_matte, - /* butfunc */ node_composit_buts_chroma_matte, + /* butfunc */ NULL, node_composit_init_chroma_matte }; |