Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-11 04:34:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-11 04:35:18 +0300
commit9a8b6d51c129aec9385b83391745ce4ac38e953b (patch)
tree38ef613c491ecdf6a82d70f502e36a3fe8f84939 /source/blender/draw
parent3dfbb72b296a73130f0975bb4be6fc6f4ca465c9 (diff)
Fix T58850: NDOF navigation guide not shown
Diffstat (limited to 'source/blender/draw')
-rw-r--r--source/blender/draw/intern/draw_view.c5
1 files changed, 5 insertions, 0 deletions
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);
}
}
}