diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2020-06-27 11:55:33 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2020-06-27 11:55:33 +0300 |
commit | 563670ff9e7421abc87095dab78e89ef23499253 (patch) | |
tree | 6398ddc5612328d3c993511abdf66a7ce5bc329f | |
parent | fec2b2a809a8ff16e0c19c42f122d0f649258d02 (diff) |
Fix T78336: Gpencil selection unstable
The selection with the tweak tool was inprecise because it was using the bounding box and if the point was in a straight line in the border or in the corners it was very hard to select.
For this tool is better don't use the bounding box check.
-rw-r--r-- | source/blender/editors/gpencil/gpencil_select.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c index b3256628ab3..d698a9e2289 100644 --- a/source/blender/editors/gpencil/gpencil_select.c +++ b/source/blender/editors/gpencil/gpencil_select.c @@ -1483,14 +1483,6 @@ static int gpencil_select_exec(bContext *C, wmOperator *op) bGPDspoint *pt; int i; - /* Check boundbox to speedup. */ - float fmval[2]; - copy_v2fl_v2i(fmval, mval); - if (!ED_gpencil_stroke_check_collision( - &gsc, gps_active, fmval, radius, gpstroke_iter.diff_mat)) { - continue; - } - /* firstly, check for hit-point */ for (i = 0, pt = gps->points; i < gps->totpoints; i++, pt++) { int xy[2]; |