[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19878] trunk/blender/source/blender/ python/api2_2x/Window.c: [#18587] bugfix #18425 (Window.EditMode() ignores undo information)
Campbell Barton
ideasman42 at gmail.com
Wed Apr 22 21:04:00 CEST 2009
Revision: 19878
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19878
Author: campbellbarton
Date: 2009-04-22 21:04:00 +0200 (Wed, 22 Apr 2009)
Log Message:
-----------
[#18587] bugfix #18425 (Window.EditMode() ignores undo information)
from Lorenzo Pierfederici (lento)
Modified Paths:
--------------
trunk/blender/source/blender/python/api2_2x/Window.c
Modified: trunk/blender/source/blender/python/api2_2x/Window.c
===================================================================
--- trunk/blender/source/blender/python/api2_2x/Window.c 2009-04-22 18:39:44 UTC (rev 19877)
+++ trunk/blender/source/blender/python/api2_2x/Window.c 2009-04-22 19:04:00 UTC (rev 19878)
@@ -954,9 +954,11 @@
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
More information about the Bf-blender-cvs
mailing list