diff options
author | Johnny Matthews <johnny.matthews@gmail.com> | 2005-07-25 21:03:09 +0400 |
---|---|---|
committer | Johnny Matthews <johnny.matthews@gmail.com> | 2005-07-25 21:03:09 +0400 |
commit | dec3fa07f3b03e012d15fb8904a5eb12b12d3390 (patch) | |
tree | ad5f473b2105f8b0d6cb8a8ad70405ff53fe8070 /source/blender/src/editmesh_loop.c | |
parent | 8d3987466d3536b2bcf98d95eb80ad3346d60160 (diff) |
Some bad use of non-public API. Changed the calls to BIF_undo_push() and BIF_undo() instead
Diffstat (limited to 'source/blender/src/editmesh_loop.c')
-rw-r--r-- | source/blender/src/editmesh_loop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/src/editmesh_loop.c b/source/blender/src/editmesh_loop.c index 149ff1d5d64..772de6aa15c 100644 --- a/source/blender/src/editmesh_loop.c +++ b/source/blender/src/editmesh_loop.c @@ -211,6 +211,7 @@ void CutEdgeloop(int numcuts) short event,val,choosing=1,cancel=0,dist,cuthalf = 0; char msg[128]; + BIF_undo_push("Loopcut Begin"); while(choosing){ getmouseco_areawin(mval); if (mval[0] != mvalo[0] || mval[1] != mvalo[1]) { @@ -365,7 +366,7 @@ void CutEdgeloop(int numcuts) EdgeSlide(1,0.0); else { if(EdgeSlide(0,0.0) == -1){ - undo_editmode_step(0); + BIF_undo(); } } } |