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>2008-01-14 13:41:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-01-14 13:41:36 +0300
commitf8ec163076c237ff06bd34092163bc915c2f0427 (patch)
treeac14b50e357803af9f09dc1f1e0a296b0ed091a5 /source/blender/src/view.c
parent2262d0a45a83dc7fc04017907352ed745aeb8d1e (diff)
menu generation read and wrote to the same memory with sprintf(), use INIT_MINMAX in a few more places and centerview didnt take into account some bone tips in editmode.
Diffstat (limited to 'source/blender/src/view.c')
-rw-r--r--source/blender/src/view.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c
index 52f9ff06227..655fa59a4c1 100644
--- a/source/blender/src/view.c
+++ b/source/blender/src/view.c
@@ -1300,8 +1300,7 @@ void initlocalview()
if(G.vd->localvd) return;
- min[0]= min[1]= min[2]= 1.0e10;
- max[0]= max[1]= max[2]= -1.0e10;
+ INIT_MINMAX(min, max);
locallay= free_localbit();
@@ -1396,9 +1395,7 @@ void centerview() /* like a localview without local! */
float new_ofs[3];
float new_dist;
-
- min[0]= min[1]= min[2]= 1.0e10;
- max[0]= max[1]= max[2]= -1.0e10;
+ INIT_MINMAX(min, max);
if (G.f & G_WEIGHTPAINT) {
/* hardcoded exception, we look for the one selected armature */
@@ -1577,8 +1574,7 @@ void view3d_home(int center)
max[0]= max[1]= max[2]= 0.0;
}
else {
- min[0]= min[1]= min[2]= 1.0e10;
- max[0]= max[1]= max[2]= -1.0e10;
+ INIT_MINMAX(min, max);
}
for(base= FIRSTBASE; base; base= base->next) {