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
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-01-17 21:33:39 +0300
committerAntonioya <blendergit@gmail.com>2019-01-17 21:33:39 +0300
commit938b08b33654f6bc3419519fc364021115d19dba (patch)
tree6bd9e97c5f93245e4c68a71578b39a94a531131b
parent260b786d0724fc115c1b9920acbbfb04a5fc6cf8 (diff)
GP: Make Close fill strokes visible
-rw-r--r--source/blender/draw/engines/gpencil/gpencil_draw_utils.c4
1 files changed, 3 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 749e172515a..2dd9c74d424 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -816,7 +816,9 @@ static void gpencil_draw_strokes(
opacity, tintcolor, false, custonion);
}
/* stroke */
- if ((gp_style->flag & GP_STYLE_STROKE_SHOW) &&
+ /* No fill strokes, must show stroke always */
+ if (((gp_style->flag & GP_STYLE_STROKE_SHOW) ||
+ (gps->flag & GP_STROKE_NOFILL)) &&
((gp_style->stroke_rgba[3] > GPENCIL_ALPHA_OPACITY_THRESH) ||
(gpl->blend_mode == eGplBlendMode_Normal)))
{