Fix invalid flag check

Cast occurs first, making any flag enable this option.
This commit is contained in:
Campbell Barton
2019-10-17 12:22:58 +11:00
parent 3a51b27734
commit 85ddaaa16e

View File

@@ -1381,7 +1381,7 @@ static void gpencil_draw_onionskins(GpencilBatchCache *cache,
NULL;
int last = gpf->framenum;
colflag = (bool)gpd->onion_flag & GP_ONION_GHOST_PREVCOL;
colflag = (gpd->onion_flag & GP_ONION_GHOST_PREVCOL) != 0;
const short onion_keytype = gpd->onion_keytype;
/* -------------------------------
* 1) Draw Previous Frames First