diff options
author | Hans Goudey <h.goudey@me.com> | 2021-12-07 01:12:46 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-12-07 01:12:46 +0300 |
commit | 78ae587649bb7b3350586e7f2ed68ea67b75d1f0 (patch) | |
tree | 45961ec5bb646e47cf2b723e3a1f61afbf402bcd /source/blender/editors/space_node/node_intern.hh | |
parent | aa23e870ecc9a2542513a016da98cab7e6d7706c (diff) |
Cleanup: Use C++ types for multi input socket sorting
The algorithm used is still quite inefficient, but at least the code
is easier to read and a little bit simpler now.
Diffstat (limited to 'source/blender/editors/space_node/node_intern.hh')
-rw-r--r-- | source/blender/editors/space_node/node_intern.hh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/source/blender/editors/space_node/node_intern.hh b/source/blender/editors/space_node/node_intern.hh index 71cdd9145b9..5a2603bbe9d 100644 --- a/source/blender/editors/space_node/node_intern.hh +++ b/source/blender/editors/space_node/node_intern.hh @@ -93,11 +93,9 @@ ENUM_OPERATORS(NodeResizeDirection, NODE_RESIZE_LEFT); blender::float2 space_node_group_offset(const SpaceNode &snode); float node_socket_calculate_height(const bNodeSocket &socket); -void node_link_calculate_multi_input_position(const float socket_x, - const float socket_y, - const int index, - const int total_inputs, - float r[2]); +blender::float2 node_link_calculate_multi_input_position(const blender::float2 &socket_position, + int index, + int total_inputs); int node_get_colorid(bNode &node); int node_get_resize_cursor(NodeResizeDirection directions); |