[Bf-blender-cvs] [5ba6dbfb182] master: Fix graph editor selection tolerance ignoring DPI
Campbell Barton
noreply at git.blender.org
Tue May 7 09:33:47 CEST 2019
Commit: 5ba6dbfb18245875a8806a2faeb8aeed217f992c
Author: Campbell Barton
Date: Tue May 7 17:30:56 2019 +1000
Branches: master
https://developer.blender.org/rB5ba6dbfb18245875a8806a2faeb8aeed217f992c
Fix graph editor selection tolerance ignoring DPI
===================================================================
M source/blender/editors/space_graph/graph_select.c
===================================================================
diff --git a/source/blender/editors/space_graph/graph_select.c b/source/blender/editors/space_graph/graph_select.c
index 13a42f091f6..5ea07c56286 100644
--- a/source/blender/editors/space_graph/graph_select.c
+++ b/source/blender/editors/space_graph/graph_select.c
@@ -1141,7 +1141,7 @@ typedef enum eGraphVertIndex {
/* Tolerance for absolute radius (in pixels) of the vert from the cursor to use */
// TODO: perhaps this should depend a bit on the size that the user set the vertices to be?
-#define GVERTSEL_TOL 10
+#define GVERTSEL_TOL (10 * U.pixelsize)
/* ....... */
More information about the Bf-blender-cvs
mailing list