[Bf-blender-cvs] [938b08b3365] master: GP: Make Close fill strokes visible
Antonioya
noreply at git.blender.org
Thu Jan 17 19:33:50 CET 2019
Commit: 938b08b33654f6bc3419519fc364021115d19dba
Author: Antonioya
Date: Thu Jan 17 19:33:39 2019 +0100
Branches: master
https://developer.blender.org/rB938b08b33654f6bc3419519fc364021115d19dba
GP: Make Close fill strokes visible
===================================================================
M source/blender/draw/engines/gpencil/gpencil_draw_utils.c
===================================================================
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)))
{
More information about the Bf-blender-cvs
mailing list