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/src/poseobject.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/src/poseobject.c')
-rw-r--r-- | source/blender/src/poseobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/poseobject.c b/source/blender/src/poseobject.c index ddbd5e88ea6..6cc4a986cc1 100644 --- a/source/blender/src/poseobject.c +++ b/source/blender/src/poseobject.c @@ -114,7 +114,7 @@ void enter_posemode(void) return; } - if (G.obedit) exit_editmode(1); + if (G.obedit) exit_editmode(EM_FREEDATA|EM_WAITCURSOR); G.f &= ~(G_VERTEXPAINT | G_FACESELECT | G_TEXTUREPAINT | G_WEIGHTPAINT); } |