diff options
author | Hans Goudey <h.goudey@me.com> | 2021-09-11 06:48:49 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-09-11 06:48:49 +0300 |
commit | cb833138633e1c402c87115e504c492a12451810 (patch) | |
tree | 1d89905d270e7938796b1ce39918242bf2904e2a /source/blender/nodes/intern | |
parent | eab26f13347dca6f14cf961d755b987dcad404fa (diff) |
Nodes: Add vector min/max support to new socket builder API
Also use it to fix an incorrect min and max in the cube mesh
primitive node.
Diffstat (limited to 'source/blender/nodes/intern')
-rw-r--r-- | source/blender/nodes/intern/node_socket_declarations.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/nodes/intern/node_socket_declarations.cc b/source/blender/nodes/intern/node_socket_declarations.cc index ba9a1870b0c..e17b0fd5579 100644 --- a/source/blender/nodes/intern/node_socket_declarations.cc +++ b/source/blender/nodes/intern/node_socket_declarations.cc @@ -148,6 +148,8 @@ bNodeSocket &Vector::build(bNodeTree &ntree, bNode &node, eNodeSocketInOut in_ou &ntree, &node, in_out, SOCK_VECTOR, subtype_, identifier_.c_str(), name_.c_str()); bNodeSocketValueVector &value = *(bNodeSocketValueVector *)socket.default_value; copy_v3_v3(value.value, default_value_); + value.min = soft_min_value_; + value.max = soft_max_value_; return socket; } |