From 85ddaaa16ede2fb223898e8e28182f4b6dec337e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 17 Oct 2019 12:22:58 +1100 Subject: [PATCH] Fix invalid flag check Cast occurs first, making any flag enable this option. --- source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 7b0f0f10705..9599c91bfd7 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -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