diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-02-18 00:39:33 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-02-18 00:39:33 +0300 |
commit | b117b8e81829fa8e807159e2a5899d0896ea09c6 (patch) | |
tree | a2c4f769e894cef3b52299f3a08372d89f51d3d1 /source/blender/editors/space_view3d/view3d_draw.c | |
parent | 9491e7d7c218a77269175e57f2049507455d8ad0 (diff) |
Fix T73793 Walk navigation crosshair gets hidden behind objects
This is a bug that the recent refactor exposed. Some widgets were drawing
with alpha set to 0.
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_draw.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_draw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c index f767d56de62..06a4147e34d 100644 --- a/source/blender/editors/space_view3d/view3d_draw.c +++ b/source/blender/editors/space_view3d/view3d_draw.c @@ -570,7 +570,7 @@ static void drawviewborder(Scene *scene, Depsgraph *depsgraph, ARegion *ar, View GPU_blend(false); } - immUniformThemeColor(TH_BACK); + immUniformThemeColor3(TH_BACK); imm_draw_box_wire_2d(shdr_pos, x1i, y1i, x2i, y2i); #ifdef VIEW3D_CAMERA_BORDER_HACK @@ -607,7 +607,7 @@ static void drawviewborder(Scene *scene, Depsgraph *depsgraph, ARegion *ar, View imm_draw_box_wire_2d(shdr_pos, x1i - 1, y1i - 1, x2i + 1, y2i + 1); } - immUniformThemeColor(TH_VIEW_OVERLAY); + immUniformThemeColor3(TH_VIEW_OVERLAY); imm_draw_box_wire_2d(shdr_pos, x1i, y1i, x2i, y2i); } |