Commit: a98c9e3de9b7f0fbd490c7df8f86a71a90d4066d Author: Falk David Date: Sun Jul 19 13:40:00 2020 +0200 Branches: soc-2020-greasepencil-curve https://developer.blender.org/rBa98c9e3de9b7f0fbd490c7df8f86a71a90d4066d
GPencil: Fix curve points not deslecting =================================================================== 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 54779070d1b..39e2981785b 100644 --- a/source/blender/editors/gpencil/gpencil_select.c +++ b/source/blender/editors/gpencil/gpencil_select.c @@ -165,21 +165,21 @@ static void deselect_all_selected(bContext *C) pt->flag &= ~GP_SPOINT_SELECT; } - /* deselect curve and curve points */ - if (gps->editcurve != NULL) { - bGPDcurve *gpc = gps->editcurve; - for (int j = 0; j < gpc->tot_curve_points; j++) { - bGPDcurve_point *gpc_pt = &gpc->curve_points[j]; - BezTriple *bezt = &gpc_pt->bezt; - gpc_pt->flag &= ~GP_CURVE_POINT_SELECT; - BEZT_DESEL_ALL(bezt); - } + /* deselect stroke itself too */ + gps->flag &= ~GP_STROKE_SELECT; + } - gpc->flag &= ~GP_CURVE_SELECT; + /* deselect curve and curve points */ + if (gps->editcurve != NULL) { + bGPDcurve *gpc = gps->editcurve; + for (int j = 0; j < gpc->tot_curve_points; j++) { + bGPDcurve_point *gpc_pt = &gpc->curve_points[j]; + BezTriple *bezt = &gpc_pt->bezt; + gpc_pt->flag &= ~GP_CURVE_POINT_SELECT; + BEZT_DESEL_ALL(bezt); } - /* deselect stroke itself too */ - gps->flag &= ~GP_STROKE_SELECT; + gpc->flag &= ~GP_CURVE_SELECT; } } CTX_DATA_END; _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org https://lists.blender.org/mailman/listinfo/bf-blender-cvs