GP: Make Close fill strokes visible
authorAntonioya <blendergit@gmail.com>
Thu, 17 Jan 2019 18:33:39 +0000 (19:33 +0100)
committerAntonioya <blendergit@gmail.com>
Thu, 17 Jan 2019 18:33:39 +0000 (19:33 +0100)
source/blender/draw/engines/gpencil/gpencil_draw_utils.c

index 749e172515aef2ed90adeab4aa9a0de56f999a94..2dd9c74d42480499e04a5975cc5299b0deb6784b 100644 (file)
@@ -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)))
                                {