[Bf-blender-cvs] [c7df6182631] blender2.8: 3D Cursor: Clip if behind near plane.

Clément Foucault noreply at git.blender.org
Tue May 22 14:33:11 CEST 2018


Commit: c7df6182631ffe22aea1357c2f356c30c0d40dc5
Author: Clément Foucault
Date:   Tue May 22 14:32:48 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBc7df6182631ffe22aea1357c2f356c30c0d40dc5

3D Cursor: Clip if behind near plane.

===================================================================

M	source/blender/draw/intern/draw_view.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list