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:
authorClément Foucault <foucault.clem@gmail.com>2018-05-22 15:32:48 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-05-22 15:33:07 +0300
commitc7df6182631ffe22aea1357c2f356c30c0d40dc5 (patch)
tree2bc9a8e489121fa1efcbb79252003cd306995f42 /source/blender/draw/intern/draw_view.c
parentbc46034752454314673ac0b38ae050fd3b4ae502 (diff)
3D Cursor: Clip if behind near plane.
Diffstat (limited to 'source/blender/draw/intern/draw_view.c')
-rw-r--r--source/blender/draw/intern/draw_view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_view.c b/source/blender/draw/intern/draw_view.c
index fcb3a407d03..2c4e5f8b151 100644
--- a/source/blender/draw/intern/draw_view.c
+++ b/source/blender/draw/intern/draw_view.c
@@ -661,7 +661,7 @@ void DRW_draw_cursor(void)
int co[2];
const View3DCursor *cursor = ED_view3d_cursor3d_get(scene, v3d);
if (ED_view3d_project_int_global(
- ar, cursor->location, co, V3D_PROJ_TEST_NOP) == V3D_PROJ_RET_OK)
+ ar, cursor->location, co, V3D_PROJ_TEST_NOP | V3D_PROJ_TEST_CLIP_NEAR) == V3D_PROJ_RET_OK)
{
RegionView3D *rv3d = ar->regiondata;