diff options
author | Joseph Eagar <joeedh@gmail.com> | 2010-05-20 19:18:55 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2010-05-20 19:18:55 +0400 |
commit | f051cd2e89e035119efa1e34c6d66d732271b6f0 (patch) | |
tree | c410c58366c66b8bf18a53998e6d315d5a3da41a /source | |
parent | 7c52bc3c21f9ab6ed049ffc32ef6cd7008eeb8f0 (diff) |
merged 28885 frame update fix to trunk, slightly updated
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/render/render_opengl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/editors/render/render_opengl.c b/source/blender/editors/render/render_opengl.c index ee5363a00f9..aded83c0d16 100644 --- a/source/blender/editors/render/render_opengl.c +++ b/source/blender/editors/render/render_opengl.c @@ -211,7 +211,7 @@ static void screen_opengl_render_end(bContext *C, OGLRender *oglrender) if(oglrender->timer) { /* exec will not have a timer */ scene->r.cfra= oglrender->cfrao; - scene_update_for_newframe(scene, scene->lay); + scene_update_for_newframe(scene, scene->lay|oglrender->v3d->lay); WM_event_remove_timer(CTX_wm_manager(C), CTX_wm_window(C), oglrender->timer); } @@ -268,16 +268,16 @@ static int screen_opengl_render_anim_step(bContext *C, wmOperator *op) /* go to next frame */ while(CFRA<oglrender->nfra) { - if(scene->lay & 0xFF000000) - lay= scene->lay & 0xFF000000; - else - lay= scene->lay; + lay = scene->lay | oglrender->v3d->lay; + + if(lay & 0xFF000000) + lay &= 0xFF000000; scene_update_for_newframe(scene, lay); CFRA++; } - - scene_update_for_newframe(scene, scene->lay); + + scene_update_for_newframe(scene, scene->lay | oglrender->v3d->lay); if(oglrender->rv3d->persp==RV3D_CAMOB && oglrender->v3d->camera && oglrender->v3d->scenelock) { /* since scene_update_for_newframe() is used rather |