diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-17 04:22:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-17 04:34:20 +0300 |
commit | 85ddaaa16ede2fb223898e8e28182f4b6dec337e (patch) | |
tree | 20099791a84155dbdb902b9df6f815fb04cbcd92 /source/blender/draw | |
parent | 3a51b27734b32fd0df8efd243aac8af7ac8a863a (diff) |
Fix invalid flag check
Cast occurs first, making any flag enable this option.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |