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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-17 18:58:28 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-17 19:00:39 +0400
commit84fa5071102263928cd3fc4ee6e3f6d987a5bc9c (patch)
treeaa9ca4c6f153717ba57d2812a42a1b342d609c41 /source/blender/editors/space_node/node_add.c
parentc9c8872da0c94d7954dbcbcedb97ad3b004d2ccc (diff)
Fix T38141: wrong add reroute node location with shift LMB cut on OS X / retina.
Diffstat (limited to 'source/blender/editors/space_node/node_add.c')
-rw-r--r--source/blender/editors/space_node/node_add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/node_add.c b/source/blender/editors/space_node/node_add.c
index 334da2dae2f..2f9f63575fe 100644
--- a/source/blender/editors/space_node/node_add.c
+++ b/source/blender/editors/space_node/node_add.c
@@ -192,8 +192,8 @@ static bNodeSocketLink *add_reroute_do_socket_section(bContext *C, bNodeSocketLi
/* average cut point from shared links */
mul_v2_fl(insert_point, 1.0f / num_links);
- reroute_node->locx = insert_point[0];
- reroute_node->locy = insert_point[1];
+ reroute_node->locx = insert_point[0] / UI_DPI_FAC;
+ reroute_node->locy = insert_point[1] / UI_DPI_FAC;
}
return socklink;