3D Cursor: Clip if behind near plane.

This commit is contained in:
Clément Foucault 2018-05-22 14:32:48 +02:00
parent bc46034752
commit c7df618263
1 changed files with 1 additions and 1 deletions

View File

@ -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;