diff options
Diffstat (limited to 'source/blender/draw/intern/draw_manager_exec.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager_exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_manager_exec.c b/source/blender/draw/intern/draw_manager_exec.c index 6cf8dfc7904..45798c5b793 100644 --- a/source/blender/draw/intern/draw_manager_exec.c +++ b/source/blender/draw/intern/draw_manager_exec.c @@ -469,7 +469,7 @@ static void draw_clipping_setup_from_view(void) e = farpoint[2]; s = nearpoint[2]; /* distance to view Z axis */ - f = len_v2(nearpoint); + f = len_v2(farpoint); /* get corresponding point on the near plane */ mul_v2_v2fl(farxy, farpoint, s/e); /* this formula preserve the sign of n */ |