Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2022-10-03 12:18:08 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-10-03 14:17:35 +0300
commitfb499916bb8fcacc08097754a61226ae84a516f1 (patch)
treeea02073850dd4b751c0c4cb655b978c1e2f0e278
parent1bdb5542ff0d13a26fb9f94988cedd679a3172b7 (diff)
Fix T101564: GPencil: Selecting imprecise if transforms are animated
The check was doing with the original point and must be the evaluated point.
-rw-r--r--source/blender/editors/gpencil/gpencil_select.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/gpencil/gpencil_select.c b/source/blender/editors/gpencil/gpencil_select.c
index a19265720e8..6d8f62ca57f 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -2071,8 +2071,8 @@ static bool gpencil_generic_stroke_select(bContext *C,
for (i = 0, pt = gps->points; i < gps->totpoints; i++, pt++) {
bGPDspoint *pt_active = (pt->runtime.pt_orig) ? pt->runtime.pt_orig : pt;
- /* convert point coords to screenspace */
- const bool is_inside = is_inside_fn(gsc.region, gpstroke_iter.diff_mat, &pt->x, user_data);
+ /* Convert point coords to screen-space. */
+ const bool is_inside = is_inside_fn(gsc.region, gpstroke_iter.diff_mat, &pt_active->x, user_data);
if (strokemode == false) {
const bool is_select = (pt_active->flag & GP_SPOINT_SELECT) != 0;
const int sel_op_result = ED_select_op_action_deselected(sel_op, is_select, is_inside);