[Bf-blender-cvs] [5de47a3] GPencil_EditStrokes: Made the threshold for selecting individual stroke verts more sensitive
Joshua Leung
noreply at git.blender.org
Tue Oct 14 15:32:26 CEST 2014
Commit: 5de47a3d6e235e5dadb566a9af20e2a08e668196
Author: Joshua Leung
Date: Wed Oct 15 00:43:35 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rB5de47a3d6e235e5dadb566a9af20e2a08e668196
Made the threshold for selecting individual stroke verts more sensitive
That is, a wider around the cursor is now used when checking for matching verts,
which should make it easier to successfully select verts.
===================================================================
M source/blender/editors/gpencil/gpencil_select.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c
index 7d17d63..2965062 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -365,7 +365,7 @@ static int gpencil_select_exec(bContext *C, wmOperator *op)
bGPdata *gpd = ED_gpencil_data_get_active(C);
/* "radius" is simply a threshold (screen space) to make it easier to test with a tolerance */
- const float radius = 0.35f * U.widget_unit;
+ const float radius = 0.75f * U.widget_unit;
const int radius_squared = (int)(radius * radius);
rctf *subrect = NULL; /* for using the camera rect within the 3d view */
More information about the Bf-blender-cvs
mailing list