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:
authorMatt Ebb <matt@mke3.net>2010-01-18 11:38:53 +0300
committerMatt Ebb <matt@mke3.net>2010-01-18 11:38:53 +0300
commit7195345c03f74680fa5e911e1acd217724140fee (patch)
tree373094da69713abb1a3b34b41628d574c2c80837 /source/blender
parent4ab4abe98b0b7e505751a35e6335dd40fe76e4c2 (diff)
Fix for part of [#20251] Some Node UI problems
Tweaked the padding around sockets when dragging connections.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/editors/space_node/node_edit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c
index 8166cfa9513..9e10feb898d 100644
--- a/source/blender/editors/space_node/node_edit.c
+++ b/source/blender/editors/space_node/node_edit.c
@@ -964,10 +964,10 @@ static int find_indicated_socket(SpaceNode *snode, bNode **nodep, bNodeSocket **
/* check if we click in a socket */
for(node= snode->edittree->nodes.first; node; node= node->next) {
- rect.xmin = snode->mx - NODE_SOCKSIZE+3;
- rect.ymin = snode->my - NODE_SOCKSIZE+3;
- rect.xmax = rect.xmin + 2*NODE_SOCKSIZE+6;
- rect.ymax = rect.ymin + 2*NODE_SOCKSIZE+6;
+ rect.xmin = snode->mx - (NODE_SOCKSIZE+4);
+ rect.ymin = snode->my - (NODE_SOCKSIZE+4);
+ rect.xmax = snode->mx + (NODE_SOCKSIZE+4);
+ rect.ymax = snode->my + (NODE_SOCKSIZE+4);
if (!(node->flag & NODE_HIDDEN)) {
/* extra padding inside and out - allow dragging on the text areas too */