[#18587] bugfix #18425 (Window.EditMode() ignores undo information)

from Lorenzo Pierfederici (lento)
This commit is contained in:
2009-04-22 19:04:00 +00:00
parent 48f483d14f
commit f06802050d

View File

@@ -954,9 +954,11 @@ static PyObject *M_Window_EditMode( PyObject * self, PyObject * args )
enter_editmode(0);
}
} else if( G.obedit ) {
if( undo_str_len > 63 )
undo_str[63] = '\0'; /* 64 is max */
BIF_undo_push( undo_str ); /* This checks user undo settings */
if( do_undo ) {
if( undo_str_len > 63 )
undo_str[63] = '\0'; /* 64 is max */
BIF_undo_push( undo_str ); /* This checks user undo settings */
}
exit_editmode( EM_FREEDATA );
//update armatures