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/SHD_nodes/SHD_vectMath.c | |
parent | 8d4f2f9fe1e6cd4e162741e7dc879c8e2dc5b235 (diff) |
All UI code reverted to drawnode.c
Diffstat (limited to 'source/blender/nodes/intern/SHD_nodes/SHD_vectMath.c')
-rw-r--r-- | source/blender/nodes/intern/SHD_nodes/SHD_vectMath.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/source/blender/nodes/intern/SHD_nodes/SHD_vectMath.c b/source/blender/nodes/intern/SHD_nodes/SHD_vectMath.c index 1a21f08ee55..1d1f36b9fa5 100644 --- a/source/blender/nodes/intern/SHD_nodes/SHD_vectMath.c +++ b/source/blender/nodes/intern/SHD_nodes/SHD_vectMath.c @@ -99,17 +99,6 @@ static void node_shader_exec_vect_math(void *data, bNode *node, bNodeStack **in, } -static int node_shader_buts_vect_math(uiBlock *block, bNodeTree *ntree, bNode *node, rctf *butr) -{ - if(block) { - uiBut *bt; - - bt=uiDefButS(block, MENU, B_NODE_EXEC, "Add %x0|Subtract %x1|Average %x2|Dot Product %x3 |Cross Product %x4|Normalize %x5", butr->xmin, butr->ymin, butr->xmax-butr->xmin, 20, &node->custom1, 0, 0, 0, 0, ""); - uiButSetFunc(bt, node_but_title_cb, node, bt); - } - return 20; -} - bNodeType sh_node_vect_math= { /* type code */ SH_NODE_VECT_MATH, /* name */ "Vector Math", @@ -119,7 +108,7 @@ bNodeType sh_node_vect_math= { /* output sock */ sh_node_vect_math_out, /* storage */ "node_vect_math", /* execfunc */ node_shader_exec_vect_math, - /* butfunc */ node_shader_buts_vect_math, - NULL + /* butfunc */ NULL, + /* initfunc */ NULL }; |