Another fix for value nodes, those need full template definitions for their output...
authorLukas Toenne <lukas.toenne@googlemail.com>
Wed, 7 Sep 2011 07:29:29 +0000 (07:29 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Wed, 7 Sep 2011 07:29:29 +0000 (07:29 +0000)
source/blender/nodes/composite/nodes/node_composite_value.c
source/blender/nodes/shader/nodes/node_shader_value.c

index 80b71b9e65dfa6f518c8de313d358be8b188de1a..ed650477f50f8b9bcbec778a092ca10883939405 100644 (file)
@@ -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, ""       }
 };
 
index aadbd034e10fd5f9b2fff2c476bb748931d38470..119a36643083069bb3ad8a514f31ddf7b764899c 100644 (file)
@@ -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, ""       }
 };