[Bf-blender-cvs] [fb499916bb8] blender-v3.3-release: Fix T101564: GPencil: Selecting imprecise if transforms are animated
Antonio Vazquez
noreply at git.blender.org
Mon Oct 3 13:21:19 CEST 2022
Commit: fb499916bb8fcacc08097754a61226ae84a516f1
Author: Antonio Vazquez
Date: Mon Oct 3 11:18:08 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rBfb499916bb8fcacc08097754a61226ae84a516f1
Fix T101564: GPencil: Selecting imprecise if transforms are animated
The check was doing with the original point and
must be the evaluated point.
===================================================================
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 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);
More information about the Bf-blender-cvs
mailing list