From 9a8b6d51c129aec9385b83391745ce4ac38e953b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 11 Dec 2018 12:34:37 +1100 Subject: Fix T58850: NDOF navigation guide not shown --- source/blender/draw/intern/draw_view.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/draw') diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c index 8867c85ac2f..f56cbd68077 100644 --- a/source/blender/draw/intern/draw_view.c +++ b/source/blender/draw/intern/draw_view.c @@ -227,6 +227,9 @@ void DRW_draw_cursor(void) immUnbindProgram(); } + float original_proj[4][4]; + GPU_matrix_projection_get(original_proj); + GPU_matrix_push(); ED_region_pixelspace(ar); GPU_matrix_translate_2f(co[0] + 0.5f, co[1] + 0.5f); GPU_matrix_scale_2f(U.widget_unit, U.widget_unit); @@ -239,6 +242,8 @@ void DRW_draw_cursor(void) glDisable(GL_BLEND); glDisable(GL_LINE_SMOOTH); + GPU_matrix_pop(); + GPU_matrix_projection_set(original_proj); } } } -- cgit v1.2.3