diff options
author | Ton Roosendaal <ton@blender.org> | 2005-05-12 18:37:47 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-05-12 18:37:47 +0400 |
commit | 6bb1232b06304e9be2f0c9a830e8a5c0db4f5788 (patch) | |
tree | ee5fd79421bcddbb06bccecf39de9a9ead377dd6 /source/blender/src/editmesh_loop.c | |
parent | 34d8522431820d4bd17f190d884afb73d2510dbf (diff) |
Bug fix #2533
Made face-looping code idling correctly (hotkey K in editmode)
Diffstat (limited to 'source/blender/src/editmesh_loop.c')
-rw-r--r-- | source/blender/src/editmesh_loop.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/src/editmesh_loop.c b/source/blender/src/editmesh_loop.c index 36ed4e0dddc..bd132f600c9 100644 --- a/source/blender/src/editmesh_loop.c +++ b/source/blender/src/editmesh_loop.c @@ -78,6 +78,7 @@ editmesh_loop: tools with own drawing subloops, select, knife, subdiv #include "BDR_drawobject.h" #include "BDR_editobject.h" +#include "PIL_time.h" #include "mydevice.h" #include "blendef.h" @@ -289,16 +290,18 @@ void vertex_loop_select() glPopMatrix(); } - } - screen_swapbuffers(); + screen_swapbuffers(); /* backbuffer refresh for non-apples (no aux) */ #ifndef __APPLE__ - if(G.vd->drawtype>OB_WIRE && (G.vd->flag & V3D_ZBUF_SELECT)) { - backdrawview3d(0); - } + if(G.vd->drawtype>OB_WIRE && (G.vd->flag & V3D_ZBUF_SELECT)) { + backdrawview3d(0); + } #endif + } + else PIL_sleep_ms(10); // idle + while(qtest()) { val=0; @@ -470,6 +473,7 @@ static CutCurve *get_mouse_trail(int *len, char mode){ ldown=0; } } + else PIL_sleep_ms(10); // idle if ((event==MIDDLEMOUSE)&&(get_mbut()&M_MOUSE)&&(i)){/*MMB Down*/ /*determine which axis to lock to, or clear if locked */ @@ -1155,6 +1159,7 @@ void loopoperations(char mode) /*--------- END Preview Lines------------*/ }/*if(start!=NULL){ */ + else PIL_sleep_ms(10); // idle while(qtest()) { unsigned short val=0; |