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 committed by Philipp Oeser
parent 5dd747a54c
commit af6b88c629
Notes: blender-bot 2023-02-14 00:20:15 +01:00
Referenced by issue #96241, 3.1: Potential candidates for corrective releases
1 changed files with 1 additions and 1 deletions

View File

@ -5447,7 +5447,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;