[Bf-blender-cvs] [04fc48300b3] soc-2020-greasepencil-curve: Gpencil: Fix compiler warning
Falk David
noreply at git.blender.org
Sat Jul 4 07:11:06 CEST 2020
Commit: 04fc48300b32f95fdf6439e33b1fa93c3bf61aa6
Author: Falk David
Date: Fri Jul 3 20:56:50 2020 +0200
Branches: soc-2020-greasepencil-curve
https://developer.blender.org/rB04fc48300b32f95fdf6439e33b1fa93c3bf61aa6
Gpencil: Fix compiler warning
===================================================================
M source/blender/editors/gpencil/gpencil_edit_curve.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_edit_curve.c b/source/blender/editors/gpencil/gpencil_edit_curve.c
index 748cc53e7e3..b919f73d024 100644
--- a/source/blender/editors/gpencil/gpencil_edit_curve.c
+++ b/source/blender/editors/gpencil/gpencil_edit_curve.c
@@ -87,7 +87,7 @@ static int gpencil_stroke_enter_editcurve_mode(bContext *C, wmOperator *op)
if (gpf == gpl->actframe) {
LISTBASE_FOREACH (bGPDstroke *, gps, &gpf->strokes) {
/* only allow selected and non-converted strokes to be transformed */
- if (gps->flag & GP_STROKE_SELECT && gps->editcurve == NULL ||
+ if ((gps->flag & GP_STROKE_SELECT) && gps->editcurve == NULL ||
(gps->editcurve != NULL && gps->editcurve->flag & GP_CURVE_NEEDS_STROKE_UPDATE)) {
BKE_gpencil_stroke_editcurve_update(gps, gpd->curve_edit_threshold);
if (gps->editcurve != NULL) {
More information about the Bf-blender-cvs
mailing list