diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-09-07 11:29:29 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2011-09-07 11:29:29 +0400 |
commit | 6d18b1800a9bbbb7ab0ab03907a1d2a720d7f8d0 (patch) | |
tree | 577af69f4ce744cc88b5529bac799c5ffcb0ca50 /source | |
parent | f6a64f4d799ad28b297d78c1107e74233b7018b0 (diff) |
Another fix for value nodes, those need full template definitions for their output sockets, since they use their range limits for buttons.
Diffstat (limited to 'source')
-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, "" } }; |