Fix compile error in recent commit

This was introduced in rBd7b10e5b740fe2.
This commit is contained in:
Jacques Lucke 2020-06-27 21:07:20 +02:00 committed by Jeroen Bakker
parent 78c7e7e3bc
commit e34a751172
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ static bGPDstroke *gpencil_prepare_stroke(bContext *C, wmOperator *op, int totpo
bGPDframe *gpf = BKE_gpencil_layer_frame_get(gpl, CFRA, add_frame_mode);
/* stroke */
bGPDstroke *gps = BKE_gpencil_stroke_new(max(ob->actcol - 1, 0), totpoints, brush->size);
bGPDstroke *gps = BKE_gpencil_stroke_new(MAX2(ob->actcol - 1, 0), totpoints, brush->size);
gps->flag |= GP_STROKE_SELECT;
if (cyclic) {