[Bf-blender-cvs] [f395cad4a3b] greasepencil-edit-curve: GPencil: Fix compiler errors

Antonio Vazquez noreply at git.blender.org
Sat Jun 13 15:20:42 CEST 2020


Commit: f395cad4a3b6dd156c97e99e8a7e65ae9a9be8b5
Author: Antonio Vazquez
Date:   Sat Jun 13 15:20:33 2020 +0200
Branches: greasepencil-edit-curve
https://developer.blender.org/rBf395cad4a3b6dd156c97e99e8a7e65ae9a9be8b5

GPencil: Fix compiler errors

===================================================================

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