diff options
Diffstat (limited to 'source/blender/draw/engines/gpencil/gpencil_draw_utils.c')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 3b2d5ec0825..c4d7da2dca8 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -342,6 +342,11 @@ static void set_wireframe_color(Object *ob, bGPDlayer *gpl, View3D *v3d, else { copy_v4_v4(stl->shgroups[id].wire_color, color); } + + /* if solid, the alpha must be set to 1.0 */ + if (stl->shgroups[id].shading_type[0] == OB_SOLID) { + stl->shgroups[id].wire_color[3] = 1.0f; + } } /* create shading group for filling */ |