Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-01-09 08:28:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-01-09 08:28:37 +0300
commitca97ede0cd800eb60c04f9b9e73e4be5c5dc77b7 (patch)
tree6d0607fbb6a10b9e37eff7e593766fab61823427 /source/blender/python/api2_2x/Window.c
parentfae8716c54fee52f413d9dc89d6d03729d296ee8 (diff)
fixes spelling of filename.
Window.c was calling undo_push_mesh, even for non mesh objects, exiting editmode would crash for any non mesh object (found with the armature symmetry script), bad juju.
Diffstat (limited to 'source/blender/python/api2_2x/Window.c')
-rw-r--r--source/blender/python/api2_2x/Window.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/Window.c b/source/blender/python/api2_2x/Window.c
index eaca5e3e5e3..de9baec0a81 100644
--- a/source/blender/python/api2_2x/Window.c
+++ b/source/blender/python/api2_2x/Window.c
@@ -901,11 +901,11 @@ static PyObject *M_Window_EditMode( PyObject * self, PyObject * args )
if( !G.obedit )
enter_editmode(0);
} else if( G.obedit ) {
- if( do_undo && U.undosteps != 0 ) {
- if( undo_str_len > 63 )
- undo_str[63] = '\0'; /* 64 is max */
- undo_push_mesh( undo_str ); /* use better solution after 2.34 */
- }
+
+ 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 );
}
}