diff options
author | Hans Goudey <h.goudey@me.com> | 2022-01-04 19:32:32 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-01-04 19:32:32 +0300 |
commit | f7c0287278e08ddaf553a8e49762d441e5214091 (patch) | |
tree | d723b455d0a195972036fdfa090b7115037b640c /source/blender | |
parent | 55842b424477e8eed1756a28bdd82666e484c5a3 (diff) |
Fix: Link drag search error with random value node from color socket
Dragging from a color socket would hit an assert in a debug build.
The node does not have a color mode currently, so use the vector mode
instead when connecting to a color socket.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/nodes/function/nodes/node_fn_random_value.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/nodes/function/nodes/node_fn_random_value.cc b/source/blender/nodes/function/nodes/node_fn_random_value.cc index c68af7e24af..ceea6246cb0 100644 --- a/source/blender/nodes/function/nodes/node_fn_random_value.cc +++ b/source/blender/nodes/function/nodes/node_fn_random_value.cc @@ -110,9 +110,8 @@ static std::optional<CustomDataType> node_type_from_other_socket(const bNodeSock case SOCK_INT: return CD_PROP_INT32; case SOCK_VECTOR: - return CD_PROP_FLOAT3; case SOCK_RGBA: - return CD_PROP_COLOR; + return CD_PROP_FLOAT3; default: return {}; } |