diff options
author | Iliya Katueshenock <Moder> | 2022-09-27 02:10:27 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-27 02:10:27 +0300 |
commit | 8da253cfb64fe578bd8136a7a0a4c4aa74fb536b (patch) | |
tree | 437280caa3d88ad6af8b0e8ac4109a6b52bb07ae /source/blender/editors | |
parent | dcd909122f9ad644dcc11e49f565e58dabe276e2 (diff) |
Fix T101361: Collapsed multi-input sockets not collapsing noodles
Caused by 40d815dff651, which removed the check for "hidden" nodes.
Differential Revision: https://developer.blender.org/D16061
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/space_node/drawnode.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_node/drawnode.cc b/source/blender/editors/space_node/drawnode.cc index 0b11aa37981..13d13b10339 100644 --- a/source/blender/editors/space_node/drawnode.cc +++ b/source/blender/editors/space_node/drawnode.cc @@ -1588,7 +1588,7 @@ void draw_nodespace_back_pix(const bContext &C, static float2 socket_link_connection_location(const bNodeSocket &socket, const bNodeLink &link) { const float2 socket_location(socket.locx, socket.locy); - if (socket.flag & SOCK_MULTI_INPUT && socket.in_out == SOCK_IN) { + if (socket.is_multi_input() && socket.is_input() && !(socket.owner_node().flag & NODE_HIDDEN)) { return node_link_calculate_multi_input_position( socket_location, link.multi_input_socket_index, socket.total_inputs); } |