diff options
author | Ton Roosendaal <ton@blender.org> | 2003-09-17 15:05:33 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-09-17 15:05:33 +0400 |
commit | bcd01942d8510aa561ab7c247655a286eff224e9 (patch) | |
tree | 93bdb948fe0fe9eccf93463a489f4637fc0b8b84 /source/blender/src/view.c | |
parent | c01d06df3cd1241011a468e4f0108b1b904f6c7e (diff) |
- bugfix #492
"Waste cpu while rotating view"
I added a tiny idle in the 'wait_for_statechanged' call, I suspect
ghostwinlay returns events while holding mousebutton...
Diffstat (limited to 'source/blender/src/view.c')
-rw-r--r-- | source/blender/src/view.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/view.c b/source/blender/src/view.c index f878fb5b51b..30eb5acbb9b 100644 --- a/source/blender/src/view.c +++ b/source/blender/src/view.c @@ -521,8 +521,10 @@ void viewmove(int mode) scrarea_do_windraw(curarea); screen_swapbuffers(); } - else BIF_wait_for_statechange(); - + else { + BIF_wait_for_statechange(); + } + /* this in the end, otherwise get_mbut does not work on a PC... */ if( !(get_mbut() & (L_MOUSE|M_MOUSE))) break; } |