From d19d0ff99e61a49a7a0178bc58ff258bab775f70 Mon Sep 17 00:00:00 2001 From: Antonioya Date: Sun, 7 Jul 2019 22:28:41 +0200 Subject: Fix T66376: Problem with Gpencil fill tool The fill material has an alpha > 0, but the show fill is disabled, but as the fill tool is considered the fill as visible and the stroke is not drawn, the fill area had a gap. --- source/blender/editors/gpencil/drawgpencil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/editors/gpencil/drawgpencil.c b/source/blender/editors/gpencil/drawgpencil.c index 5f08035a56b..809acc3b322 100644 --- a/source/blender/editors/gpencil/drawgpencil.c +++ b/source/blender/editors/gpencil/drawgpencil.c @@ -888,7 +888,7 @@ static void gp_draw_strokes(tGPDdraw *tgpw) /* if disable fill, the colors with fill must be omitted too except fill boundary strokes */ if ((tgpw->disable_fill == 1) && (gp_style->fill_rgba[3] > 0.0f) && - ((gps->flag & GP_STROKE_NOFILL) == 0)) { + ((gps->flag & GP_STROKE_NOFILL) == 0) && (gp_style->flag & GP_STYLE_FILL_SHOW)) { continue; } -- cgit v1.2.3