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.

This commit is contained in:
2008-01-14 10:41:36 +00:00
parent 2262d0a45a
commit f8ec163076
4 changed files with 10 additions and 15 deletions

View File

@@ -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);