diff options
-rw-r--r-- | source/blender/nodes/composite/nodes/node_composite_value.c | 3 | ||||
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_value.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/nodes/composite/nodes/node_composite_value.c b/source/blender/nodes/composite/nodes/node_composite_value.c index 80b71b9e65d..ed650477f50 100644 --- a/source/blender/nodes/composite/nodes/node_composite_value.c +++ b/source/blender/nodes/composite/nodes/node_composite_value.c @@ -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, "" } }; diff --git a/source/blender/nodes/shader/nodes/node_shader_value.c b/source/blender/nodes/shader/nodes/node_shader_value.c index aadbd034e10..119a3664308 100644 --- a/source/blender/nodes/shader/nodes/node_shader_value.c +++ b/source/blender/nodes/shader/nodes/node_shader_value.c @@ -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, "" } }; |