[Bf-blender-cvs] [110ad192a78] soc-2020-greasepencil-curve: GPencil: Fix selection of BezTriple
Falk David
noreply at git.blender.org
Sun Jun 14 13:30:00 CEST 2020
Commit: 110ad192a781a88edd48501a38511775ed5d9c00
Author: Falk David
Date: Sun Jun 14 13:24:27 2020 +0200
Branches: soc-2020-greasepencil-curve
https://developer.blender.org/rB110ad192a781a88edd48501a38511775ed5d9c00
GPencil: Fix selection of BezTriple
===================================================================
M source/blender/editors/gpencil/gpencil_utils.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_utils.c b/source/blender/editors/gpencil/gpencil_utils.c
index 8e434fd6af3..9c412f8844f 100644
--- a/source/blender/editors/gpencil/gpencil_utils.c
+++ b/source/blender/editors/gpencil/gpencil_utils.c
@@ -2629,7 +2629,7 @@ void ED_gpencil_select_curve_toggle_all(bContext *C, int action)
if (gps->editcurve != NULL) {
bGPDcurve *gpc = gps->editcurve;
for (int i = 0; i < gpc->tot_curve_points; i++) {
- BezTriple *bezt = &gpc->curve_points[i];
+ BezTriple *bezt = &gpc->curve_points[i].bezt;
BEZT_DESEL_ALL(bezt);
}
gps->flag &= ~GP_STROKE_SELECT;
@@ -2648,7 +2648,7 @@ void ED_gpencil_select_curve_toggle_all(bContext *C, int action)
bGPDcurve *gpc = gps->editcurve;
for (int i = 0; i < gpc->tot_curve_points; i++) {
- BezTriple *bezt = &gpc->curve_points[i];
+ BezTriple *bezt = &gpc->curve_points[i].bezt;
switch (action) {
case SEL_SELECT:
BEZT_SEL_ALL(bezt);
More information about the Bf-blender-cvs
mailing list