Fix T38141: wrong add reroute node location with shift LMB cut on OS X / retina.

This commit is contained in:
Brecht Van Lommel 2014-01-17 15:58:28 +01:00
parent c9c8872da0
commit 84fa507110
Notes: blender-bot 2023-02-14 11:28:43 +01:00
Referenced by issue #38141, OSX Retina: Add Reroute node wrong placement
1 changed files with 2 additions and 2 deletions

View File

@ -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;