[Bf-blender-cvs] [db3b6100404] blender-v2.93-release: Fix T87170 Multi-Input socket activation zone error with lots of inputs

Fabian Schempp noreply at git.blender.org
Mon Apr 26 00:56:05 CEST 2021


Commit: db3b6100404219e2a02e8163e511e604ee137828
Author: Fabian Schempp
Date:   Mon Apr 26 00:55:55 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rBdb3b6100404219e2a02e8163e511e604ee137828

Fix T87170 Multi-Input socket activation zone error with lots of inputs

Calculation of bounding rect for multi-input socket was wrong.

Reviewer: Hans Goudey (HooglyBoogly)

Differential Revision: https://developer.blender.org/D11077

===================================================================

M	source/blender/editors/space_node/node_edit.c

===================================================================

diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c
index 7282ed4b667..d4780534a83 100644
--- a/source/blender/editors/space_node/node_edit.c
+++ b/source/blender/editors/space_node/node_edit.c
@@ -1136,8 +1136,8 @@ static bool cursor_isect_multi_input_socket(const float cursor[2], const bNodeSo
        * But keep it smaller because for multi-input socket you
        * sometimes want to drag the link to the other side, if you may
        * accidentally pick the wrong link otherwise. */
-      .ymin = socket->locy - node_socket_height * 0.5 - NODE_SOCKSIZE,
-      .ymax = socket->locy + node_socket_height * 0.5 + NODE_SOCKSIZE,
+      .ymin = socket->locy - node_socket_height,
+      .ymax = socket->locy + node_socket_height,
   };
   if (BLI_rctf_isect_pt(&multi_socket_rect, cursor[0], cursor[1])) {
     return true;



More information about the Bf-blender-cvs mailing list