diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-01-14 13:41:36 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-01-14 13:41:36 +0300 |
commit | f8ec163076c237ff06bd34092163bc915c2f0427 (patch) | |
tree | ac14b50e357803af9f09dc1f1e0a296b0ed091a5 /source/blender/src/edit.c | |
parent | 2262d0a45a83dc7fc04017907352ed745aeb8d1e (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/edit.c')
-rw-r--r-- | source/blender/src/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/edit.c b/source/blender/src/edit.c index fcd38ef16a7..138f0a438fd 100644 --- a/source/blender/src/edit.c +++ b/source/blender/src/edit.c @@ -952,7 +952,7 @@ static void make_trans_verts(float *min, float *max, int mode) /* I skip it for editmesh now (ton) */ if(G.obedit->type!=OB_MESH) { countall(); - if(mode) tottrans= G.totvert; + if(mode) tottrans= G.totvert; else tottrans= G.totvertsel; if(G.totvertsel==0) { @@ -1915,7 +1915,7 @@ int minmax_verts(float *min, float *max) tottrans=0; if ELEM5(G.obedit->type, OB_ARMATURE, OB_LATTICE, OB_MESH, OB_SURF, OB_CURVE) - make_trans_verts(bmat[0], bmat[1], 0); + make_trans_verts(bmat[0], bmat[1], 2); if(tottrans==0) return 0; Mat3CpyMat4(bmat, G.obedit->obmat); |