This commit is contained in:
Campbell Barton 2011-09-08 04:45:39 +00:00
commit 1251441d08
2 changed files with 4 additions and 0 deletions

@ -46,6 +46,8 @@ static void node_composit_init_value(bNodeTree *UNUSED(ntree), bNode *node, bNod
bNodeSocketValueFloat *dval= (bNodeSocketValueFloat*)sock->default_value;
/* uses the default value of the output socket, must be initialized here */
dval->value = 0.5f;
dval->min = -FLT_MAX;
dval->max = FLT_MAX;
}
static void node_composit_exec_value(void *UNUSED(data), bNode *node, bNodeStack **UNUSED(in), bNodeStack **out)

@ -46,6 +46,8 @@ static void node_shader_init_value(bNodeTree *UNUSED(ntree), bNode *node, bNodeT
bNodeSocketValueFloat *dval= (bNodeSocketValueFloat*)sock->default_value;
/* uses the default value of the output socket, must be initialized here */
dval->value = 0.5f;
dval->min = -FLT_MAX;
dval->max = FLT_MAX;
}
static void node_shader_exec_value(void *UNUSED(data), bNode *node, bNodeStack **UNUSED(in), bNodeStack **out)