diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-24 00:46:15 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-24 00:46:15 +0300 |
commit | 0f8da4f014aafee5dbf4de927b372f125a847b67 (patch) | |
tree | 7587fdf839d0a57304b9967bd46eb76fd530b499 /source | |
parent | e77dc3e7ffda4ca6bcc96e6a4753fee3b04db803 (diff) |
Fix T62884 Missing control point in unselected mask handles
The fix is a bit dirty. Force alpha 1.0 for these colors by using
immUniformThemeColorShadeAlpha with 255 as alpha_offset.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mask/mask_draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/mask/mask_draw.c b/source/blender/editors/mask/mask_draw.c index 82f7cb49d12..0164fe4cc03 100644 --- a/source/blender/editors/mask/mask_draw.c +++ b/source/blender/editors/mask/mask_draw.c @@ -236,10 +236,10 @@ static void draw_spline_points(const bContext *C, MaskLayer *masklay, MaskSpline if (point == masklay->act_point) immUniformColor3f(1.0f, 1.0f, 1.0f); else - immUniformThemeColor(TH_HANDLE_VERTEX_SELECT); + immUniformThemeColorShadeAlpha(TH_HANDLE_VERTEX_SELECT, 0, 255); } else { - immUniformThemeColor(TH_HANDLE_VERTEX); + immUniformThemeColorShadeAlpha(TH_HANDLE_VERTEX, 0, 255); } immBegin(GPU_PRIM_POINTS, 1); @@ -306,10 +306,10 @@ static void draw_spline_points(const bContext *C, MaskLayer *masklay, MaskSpline if (point == masklay->act_point) immUniformColor3f(1.0f, 1.0f, 1.0f); else - immUniformThemeColor(TH_HANDLE_VERTEX_SELECT); + immUniformThemeColorShadeAlpha(TH_HANDLE_VERTEX_SELECT, 0, 255); } else - immUniformThemeColor(TH_HANDLE_VERTEX); + immUniformThemeColorShadeAlpha(TH_HANDLE_VERTEX, 0, 255); immBegin(GPU_PRIM_POINTS, 1); immVertex2fv(pos, vert); |