diff options
author | Antonioya <blendergit@gmail.com> | 2019-01-25 16:34:56 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-01-25 16:34:56 +0300 |
commit | 3fb72a5432a722ac036e5b567940ace13e64705d (patch) | |
tree | 2b01a8319e9ae075018e071a5199f9cc80cbdb71 /source/blender/draw/engines/gpencil | |
parent | e198c5a175cf2c44a034d9a42e51027fe89002b8 (diff) |
GP: Use Fill color when drawing strokes for no stroke materials
Artists requested to show the stroke while drawing a new stroke using a material with fill color only, because it's very difficult to see the stroke.
Now the stroke shows always but using the fill color, not the stroke color because maybe is not set.
Diffstat (limited to 'source/blender/draw/engines/gpencil')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_utils.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c index 0cc835b8d4e..27c640cc77a 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c @@ -1215,15 +1215,11 @@ void DRW_gpencil_populate_buffer_strokes(GPENCIL_e_data *e_data, void *vedata, T gpd, lthick); } - /* No fill strokes, must show stroke always */ - if ((gp_style->flag & GP_STYLE_STROKE_SHOW) || - (gpd->runtime.sbuffer_sflag & GP_STROKE_NOFILL)) - { - DRW_shgroup_call_add( - stl->g_data->shgrps_drawing_stroke, - e_data->batch_buffer_stroke, - stl->storage->unit_matrix); - } + /* buffer strokes, must show stroke always */ + DRW_shgroup_call_add( + stl->g_data->shgrps_drawing_stroke, + e_data->batch_buffer_stroke, + stl->storage->unit_matrix); if ((gpd->runtime.sbuffer_size >= 3) && (gpd->runtime.sfill[3] > GPENCIL_ALPHA_OPACITY_THRESH) && |