diff options
author | Antonioya <blendergit@gmail.com> | 2018-09-04 17:59:14 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-09-04 18:00:27 +0300 |
commit | 950dcaea109fa93c3cca1fdb2f2c2b344f903104 (patch) | |
tree | 03179eb016d3c85cd3c6ada64ec71d3d12317418 /source/blender/draw | |
parent | eead6a6046029e589666b79932a5fcaa9c5cccbc (diff) |
Fix T56682: GP Edit mode, deselected vertices not visible
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c index 8e6f2791e72..079f76aad28 100644 --- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c +++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c @@ -479,6 +479,10 @@ GPUBatch *DRW_gpencil_get_edit_geom(bGPDstroke *gps, float alpha, short dflag) UI_GetThemeColor3fv(TH_GP_VERTEX_SELECT, selectColor); selectColor[3] = alpha; + float unselectColor[4]; + UI_GetThemeColor3fv(TH_GP_VERTEX, unselectColor); + unselectColor[3] = alpha; + static GPUVertFormat format = { 0 }; static uint pos_id, color_id, size_id; if (format.attr_len == 0) { @@ -526,7 +530,7 @@ GPUBatch *DRW_gpencil_get_edit_geom(bGPDstroke *gps, float alpha, short dflag) fsize = vsize; } else { - copy_v4_v4(fcolor, gps->runtime.tmp_stroke_rgba); + copy_v4_v4(fcolor, unselectColor); fsize = bsize; } } |