diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2019-11-02 13:14:13 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2019-11-02 13:14:13 +0300 |
commit | dfe40c9594dcc2555927accb9c01f80b27361407 (patch) | |
tree | 58f58a2f460a5506b59fed66ce73f1c19b9a72e0 /source/blender/draw/engines/gpencil/gpencil_draw_utils.c | |
parent | 9c275e26f99fadf83b5096f87dafce8597fede41 (diff) | |
parent | 1c8d76772a84cb616c498ffbaf0a262086b0f8fa (diff) |
Merge branch 'blender-v2.81-release'
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_draw_utils.c')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 36805bc0078..efc73fd1056 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -1260,9 +1260,11 @@ static void gpencil_draw_strokes(GpencilBatchCache *cache, gpencil_add_fill_vertexdata( cache, ob, gpl, gpf, gps, opacity, tintcolor, false, custonion); } - /* stroke */ - /* No fill strokes, must show stroke always */ - if (((gp_style->flag & GP_STYLE_STROKE_SHOW) || (gps->flag & GP_STROKE_NOFILL)) && + /* stroke + * No fill strokes, must show stroke always or if the total points is lower than 3, + * because the stroke cannot be filled and it would be invisible. */ + if (((gp_style->flag & GP_STYLE_STROKE_SHOW) || (gps->flag & GP_STROKE_NOFILL) || + (gps->totpoints < 3)) && ((gp_style->stroke_rgba[3] > GPENCIL_ALPHA_OPACITY_THRESH) || (gpl->blend_mode == eGplBlendMode_Regular))) { /* recalc strokes uv (geometry can be changed by modifiers) */ |