Another fix for value nodes, those need full template definitions for their output sockets, since they use their range limits for buttons.

This commit is contained in:
Lukas Toenne 2011-09-07 07:29:29 +00:00
parent f6a64f4d79
commit 6d18b1800a
2 changed files with 4 additions and 2 deletions

@ -36,7 +36,8 @@
/* **************** VALUE ******************** */
static bNodeSocketTemplate cmp_node_value_out[]= {
{ SOCK_FLOAT, 0, "Value"},
/* XXX value nodes use the output sockets for buttons, so we need explicit limits here! */
{ SOCK_FLOAT, 0, "Value", 0.0f, 0.0f, 0.0f, 0.0f, -FLT_MAX, FLT_MAX},
{ -1, 0, "" }
};

@ -36,7 +36,8 @@
/* **************** VALUE ******************** */
static bNodeSocketTemplate sh_node_value_out[]= {
{ SOCK_FLOAT, 0, "Value"},
/* XXX value nodes use the output sockets for buttons, so we need explicit limits here! */
{ SOCK_FLOAT, 0, "Value", 0.0f, 0.0f, 0.0f, 0.0f, -FLT_MAX, FLT_MAX},
{ -1, 0, "" }
};