diff options
author | Ton Roosendaal <ton@blender.org> | 2004-05-07 15:59:41 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2004-05-07 15:59:41 +0400 |
commit | 934bdb5ee91271f6b508949fca77175c40a6ffd7 (patch) | |
tree | 57144efab1760f3e5c587ac9f28b9a49deec600a /source/blender/src/drawview.c | |
parent | e7f6ebb7ca1709a4a75aec7f6e113b070eccee5e (diff) |
When pressing ALT+A, i noticed other windows advance 1 frame. This is
caused by swapbuffers system, which redraws the other windows when the
CFRA timer already advanced 1 frame.
Added an extra redraw to fix this. Could fix report #964, will wait for
JWalton to verify.
Diffstat (limited to 'source/blender/src/drawview.c')
-rw-r--r-- | source/blender/src/drawview.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/src/drawview.c b/source/blender/src/drawview.c index 1fe0866458f..27c6e08418a 100644 --- a/source/blender/src/drawview.c +++ b/source/blender/src/drawview.c @@ -2454,7 +2454,11 @@ int play_anim(int mode) audiostream_start( CFRA ); inner_play_anim_loop(1, mode); /* 1==init */ - + + /* forces all buffers to be OK for current frame (otherwise other windows get redrawn with CFRA+1) */ + curarea->win_swap= WIN_BACK_OK; + screen_swapbuffers(); + while(TRUE) { inner_play_anim_loop(0, 0); |