[Bf-blender-cvs] [83ebf6a8111] master: Fix T101564: GPencil: Selecting imprecise if transforms are animated
Antonio Vazquez
noreply at git.blender.org
Mon Oct 3 11:18:28 CEST 2022
Commit: 83ebf6a81118650f02a6629c2bbb3f79dee7be89
Author: Antonio Vazquez
Date: Mon Oct 3 11:18:08 2022 +0200
Branches: master
https://developer.blender.org/rB83ebf6a81118650f02a6629c2bbb3f79dee7be89
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 a8968111d93..167bfec0b6e 100644
--- a/source/blender/editors/gpencil/gpencil_select.c
+++ b/source/blender/editors/gpencil/gpencil_select.c
@@ -2072,7 +2072,7 @@ static bool gpencil_generic_stroke_select(bContext *C,
bGPDspoint *pt_active = (pt->runtime.pt_orig) ? pt->runtime.pt_orig : pt;
/* Convert point coords to screen-space. */
- const bool is_inside = is_inside_fn(gsc.region, gpstroke_iter.diff_mat, &pt->x, user_data);
+ 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