forked from bartvdbraak/blender
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:
parent
3d07196b74
commit
e40eaa4d47
@ -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*/
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user