[Bf-blender-cvs] [563670ff9e7] master: Fix T78336: Gpencil selection unstable
Antonio Vazquez
noreply at git.blender.org
Sat Jun 27 10:56:29 CEST 2020
Commit: 563670ff9e7421abc87095dab78e89ef23499253
Author: Antonio Vazquez
Date: Sat Jun 27 10:55:33 2020 +0200
Branches: master
https://developer.blender.org/rB563670ff9e7421abc87095dab78e89ef23499253
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.
===================================================================
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 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];
More information about the Bf-blender-cvs
mailing list