Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-10-17 04:22:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-10-17 04:34:20 +0300
commit85ddaaa16ede2fb223898e8e28182f4b6dec337e (patch)
tree20099791a84155dbdb902b9df6f815fb04cbcd92 /source
parent3a51b27734b32fd0df8efd243aac8af7ac8a863a (diff)
Fix invalid flag check
Cast occurs first, making any flag enable this option.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_draw_utils.c2
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