forked from bartvdbraak/blender
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:
parent
f6a64f4d79
commit
6d18b1800a
@ -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, "" }
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user