diff options
author | Geoffrey Bantle <hairbat@yahoo.com> | 2006-09-28 05:55:44 +0400 |
---|---|---|
committer | Geoffrey Bantle <hairbat@yahoo.com> | 2006-09-28 05:55:44 +0400 |
commit | b4e97c01ff7478cc7fbcbc33d12e37375d28b7aa (patch) | |
tree | 837f2343bcd112d6aa95bede310dcc8644ca4a76 /source/blender/python/api2_2x/Blender.c | |
parent | d86af04e9afc4c7f6946c0fce7129cd6acd4dbf5 (diff) |
-> Enter/Exit editmode wait cursor flags
The wait cursor was being called during editmode enter and exit for meshes.
This was a problem for several reasons. First of all, python modules like
Mesh now make use of editmode features. These methods that wrap editmode
tools may be called many times during the execution of a script
and lead to the wait cursor rapidly flickering on and off.
The other problem was that the wait cursor wasn't being called for editmode
enter and exit of all data types. This is unified now.
-New Arguments
enter_editmode() should be passed a nonzero integer or simply EM_WAITCURSOR
if the wait cursor is desired. Currently only the python API passes a '0'
to enter_editmode()
exit_editmode() has several options and they are passed in as the bitflags
EM_FREEDATA, EM_FREEUNDO and EM_WAITCURSOR. These flags are defined in
BDR_editobject.h.
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r-- | source/blender/python/api2_2x/Blender.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c index e4cbd0dab0d..8b013068e13 100644 --- a/source/blender/python/api2_2x/Blender.c +++ b/source/blender/python/api2_2x/Blender.c @@ -609,7 +609,7 @@ static PyObject *Blender_Load( PyObject * self, PyObject * args ) } if( G.obedit ) - exit_editmode( 1 ); + exit_editmode(EM_FREEDATA); if (G.background) { /* background mode */ if (is_blend_file) |