Some bad use of non-public API. Changed the calls to BIF_undo_push() and BIF_undo() instead

This commit is contained in:
Johnny Matthews
2005-07-25 17:03:09 +00:00
parent 8d3987466d
commit dec3fa07f3

View File

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