Cleanup: Unsafe mix of type warning

Unsafe mix warning of type `bool != int`.

Pull Request: https://projects.blender.org/blender/blender/pulls/110695
This commit is contained in:
Guillermo
2023-08-02 10:03:47 +02:00
committed by Falk David
parent c3685fe068
commit 5d0c355b5f

View File

@@ -3311,7 +3311,7 @@ static int gpencil_stroke_cyclical_set_exec(bContext *C, wmOperator *op)
continue;
}
bool before = bool(gps->flag & GP_STROKE_CYCLIC);
eGPDstroke_Flag before = eGPDstroke_Flag(gps->flag & GP_STROKE_CYCLIC);
switch (type) {
case GP_STROKE_CYCLIC_CLOSE:
/* Close all (enable) */
@@ -3330,7 +3330,7 @@ static int gpencil_stroke_cyclical_set_exec(bContext *C, wmOperator *op)
break;
}
if (before != (gps->flag & GP_STROKE_CYCLIC)) {
if (before != eGPDstroke_Flag(gps->flag & GP_STROKE_CYCLIC)) {
/* Create new geometry. */
if (is_curve_edit) {
BKE_gpencil_editcurve_recalculate_handles(gps);