From e40eaa4d47150c68c5bb0e22be3dbc30ec7eee61 Mon Sep 17 00:00:00 2001 From: Martin Poirier Date: Mon, 12 Jan 2004 02:46:14 +0000 Subject: [PATCH] Mirror function: Moved push_mesh to functionality function, to truely split functionality and interface. Thanks to broken for spotting that. --- source/blender/src/editobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c index 583308b1b7a..1bcad80ee07 100644 --- a/source/blender/src/editobject.c +++ b/source/blender/src/editobject.c @@ -7175,6 +7175,8 @@ void mirror(short mode) { float mat[3][3], imat[3][3], min[3], max[3]; 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); Mat3CpyMat4(mat, G.obedit->obmat); // 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(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*/ }