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:
authorCampbell Barton <ideasman42@gmail.com>2007-04-12 21:45:37 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-04-12 21:45:37 +0400
commit4b9bb648979d80690f36d7195af88562d1efa0f6 (patch)
tree5f1fb298f00e7a8e2b47311c1af6952297a2a88a /source/blender/src/view.c
parent1b04ee899bf1e2176d01788c0377403b0eb54bea (diff)
1 liner, dont go closer then the clipping when centering the view (PADPERIOD) - make centering on a vert a lot more useful
Diffstat (limited to 'source/blender/src/view.c')
-rw-r--r--source/blender/src/view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index 826f3b07917..a197b1a0a23 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -1351,7 +1351,7 @@ void centerview() /* like a localview without local! */
afm[2]= (max[2]-min[2]);
size= 0.7*MAX3(afm[0], afm[1], afm[2]);
- if(size<=0.01) size= 0.01;
+ if(size <= G.vd->near*1.5) size= G.vd->near*1.5;
new_ofs[0]= -(min[0]+max[0])/2.0;
new_ofs[1]= -(min[1]+max[1])/2.0;