GPencil: Fix unreported select error in Normalize operator

The curve selection was wrongly checked.
This commit is contained in:
Antonio Vazquez 2022-03-12 10:48:42 +01:00
parent 8617ab153e
commit a2bb3c4cad
Notes: blender-bot 2023-02-14 02:30:11 +01:00
Referenced by issue #96241, 3.1: Potential candidates for corrective releases
1 changed files with 1 additions and 1 deletions

View File

@ -5432,7 +5432,7 @@ static int gpencil_stroke_normalize_exec(bContext *C, wmOperator *op)
}
bool is_curve_ready = (gps->editcurve != NULL);
bool selected = (is_curve_edit && is_curve_ready) ?
gps->editcurve->flag |= GP_CURVE_SELECT :
(gps->editcurve->flag & GP_CURVE_SELECT) :
(gps->flag & GP_STROKE_SELECT);
if (!selected) {
continue;