-> 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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user