Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-04-26 05:45:33 +0300
committerHans Goudey <h.goudey@me.com>2021-04-26 05:45:33 +0300
commit149078d580cffbfba51eaf62e23b97933a826256 (patch)
treed083452898a94b3cc3c273c7df92d84fc62926c8 /source/blender/editors/space_node/node_edit.c
parent47b1f9a4d36c67604e2ade584594b356dfdebffd (diff)
parent36c4b79c303e9337b759736b7398c563939c908e (diff)
Merge branch 'master' into geometry-nodes-curve-support
Diffstat (limited to 'source/blender/editors/space_node/node_edit.c')
-rw-r--r--source/blender/editors/space_node/node_edit.c4
1 files changed, 2 insertions, 2 deletions
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;