diff options
author | Hans Goudey <h.goudey@me.com> | 2021-06-16 00:38:28 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-06-16 00:38:28 +0300 |
commit | 143a81ccceaf7d3abccc5a9dd4bb3520813dd222 (patch) | |
tree | f3b354dd40d018eb90d54936ac72abeb1f837e9f /source/blender/nodes | |
parent | c29afa5156596addf2b9aa61d2f58da6db0b4ec4 (diff) |
Geometry Nodes: Allow int attribute input fields with single value
Just like the way we often have a choice between an attribute input and
a single float, this adds the ability to choose between attribute and
integer input sockets, useful for D11421.
Diffstat (limited to 'source/blender/nodes')
-rw-r--r-- | source/blender/nodes/geometry/node_geometry_util.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/nodes/geometry/node_geometry_util.cc b/source/blender/nodes/geometry/node_geometry_util.cc index 93cada2982b..46e9d36c09c 100644 --- a/source/blender/nodes/geometry/node_geometry_util.cc +++ b/source/blender/nodes/geometry/node_geometry_util.cc @@ -47,6 +47,7 @@ void update_attribute_input_socket_availabilities(bNode &node, name_is_available && ((socket->type == SOCK_STRING && mode_ == GEO_NODE_ATTRIBUTE_INPUT_ATTRIBUTE) || (socket->type == SOCK_FLOAT && mode_ == GEO_NODE_ATTRIBUTE_INPUT_FLOAT) || + (socket->type == SOCK_INT && mode_ == GEO_NODE_ATTRIBUTE_INPUT_INTEGER) || (socket->type == SOCK_VECTOR && mode_ == GEO_NODE_ATTRIBUTE_INPUT_VECTOR) || (socket->type == SOCK_RGBA && mode_ == GEO_NODE_ATTRIBUTE_INPUT_COLOR)); nodeSetSocketAvailability(socket, socket_is_available); |