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/include/BDR_editobject.h | |
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/include/BDR_editobject.h')
-rw-r--r-- | source/blender/include/BDR_editobject.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/include/BDR_editobject.h b/source/blender/include/BDR_editobject.h index 83ff29d72cc..b86209f46f6 100644 --- a/source/blender/include/BDR_editobject.h +++ b/source/blender/include/BDR_editobject.h @@ -56,9 +56,13 @@ void make_vertex_parent(void); int test_parent_loop(struct Object *par, struct Object *ob); void make_parent(void); -void exit_editmode(int freedata); +#define EM_WAITCURSOR (1 << 0) +#define EM_FREEDATA (1 << 1) +#define EM_FREEUNDO (1 << 2) + +void exit_editmode(int flag); void check_editmode(int type); -void enter_editmode(void); +void enter_editmode(int wc); void docentre(int centremode); void docentre_new(void); |