Mirror function: Moved push_mesh to functionality function, to truely split functionality and interface. Thanks to broken for spotting that.

This commit is contained in:
Martin Poirier 2004-01-12 02:46:14 +00:00
parent 3d07196b74
commit e40eaa4d47

@ -7175,6 +7175,8 @@ void mirror(short mode) {
float mat[3][3], imat[3][3], min[3], max[3]; float mat[3][3], imat[3][3], min[3], max[3];
TransVert *tv; TransVert *tv;
if(G.obedit->type==OB_MESH) undo_push_mesh("Mirror"); /* If it's a mesh, push it down the undo pipe */
make_trans_verts(min, max, 0); make_trans_verts(min, max, 0);
Mat3CpyMat4(mat, G.obedit->obmat); Mat3CpyMat4(mat, G.obedit->obmat);
// Inverting the matrix explicitly, since the inverse is not always correct (then why the heck are we keeping it!) // Inverting the matrix explicitly, since the inverse is not always correct (then why the heck are we keeping it!)
@ -7307,8 +7309,6 @@ void mirrormenu(void){
if (mode==-1) return; /* return */ if (mode==-1) return; /* return */
if(G.obedit->type==OB_MESH) undo_push_mesh("Mirror"); /* If it's a mesh, push it down the undo pipe */
mirror(mode); /* separating functionality from interface | call*/ mirror(mode); /* separating functionality from interface | call*/
} }