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:
authorTon Roosendaal <ton@blender.org>2004-01-14 01:45:44 +0300
committerTon Roosendaal <ton@blender.org>2004-01-14 01:45:44 +0300
commit6727eb61045492c1323872ad47b3f3d8b96eec56 (patch)
treede90d67825b66aa9e33cdbcc266adeb2498d6209 /source/blender/src/view.c
parent7e3c4dd0bb589e0e4e95138f57a6bca6285f7e4a (diff)
restored old clipping plane method.
Justin will come with separate option to choose for 'automatic clipping', not based on the vd->dist value, but something smarter... needs more work.
Diffstat (limited to 'source/blender/src/view.c')
-rw-r--r--source/blender/src/view.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index b093e5d4663..cfd7d54607c 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -550,6 +550,9 @@ void setwinmatrixview3d(rctf *rect) /* rect: for picking */
lens= G.vd->lens;
+ near= G.vd->near;
+ far= G.vd->far;
+
if(G.vd->persp==2) {
near= G.vd->near;
far= G.vd->far;
@@ -579,9 +582,6 @@ void setwinmatrixview3d(rctf *rect) /* rect: for picking */
}
}
}
- }else{
- near= G.vd->near*G.vd->dist;
- far= G.vd->far*G.vd->dist;
}
if(v3d_windowmode) {