Fix T40617: Ortho view selects objects behind camera

This commit is contained in:
Campbell Barton 2014-06-16 16:55:57 +10:00
parent f325ddb0d7
commit 31e15b56a4
Notes: blender-bot 2023-02-14 10:30:37 +01:00
Referenced by issue #40617, Orthographic view trought camera selecting object behind ths camera
1 changed files with 1 additions and 1 deletions

View File

@ -815,7 +815,7 @@ void view3d_winmatrix_set(ARegion *ar, View3D *v3d, rctf *rect)
rect->ymax /= (float)ar->winy;
rect->ymax = y1 + rect->ymax * (y2 - y1);
if (is_ortho) wmOrtho(rect->xmin, rect->xmax, rect->ymin, rect->ymax, -clipend, clipend);
if (is_ortho) wmOrtho(rect->xmin, rect->xmax, rect->ymin, rect->ymax, clipsta, clipend);
else wmFrustum(rect->xmin, rect->xmax, rect->ymin, rect->ymax, clipsta, clipend);
}