From 6a91cf9adb750810d942104cf6ce5fef5a7bf999 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 19 Apr 2011 06:37:29 +0000 Subject: noticed a problem with rendering non-active scenes in the node editor. - the frame from the current scene wasn't used - whereas with rendering it is, set the current frame as is done when node rendering. - camera switching also failed, added a call to it. --- source/blender/editors/render/render_internal.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source/blender/editors/render/render_internal.c') diff --git a/source/blender/editors/render/render_internal.c b/source/blender/editors/render/render_internal.c index ddab9fae96f..71c88ae9e8f 100644 --- a/source/blender/editors/render/render_internal.c +++ b/source/blender/editors/render/render_internal.c @@ -54,6 +54,7 @@ #include "BKE_report.h" #include "BKE_sequencer.h" #include "BKE_screen.h" +#include "BKE_scene.h" #include "WM_api.h" #include "WM_types.h" @@ -744,6 +745,10 @@ static int screen_render_invoke(bContext *C, wmOperator *op, wmEvent *event) rl = (SceneRenderLayer *)BLI_findstring(&scene->r.layers, rl_name, offsetof(SceneRenderLayer, name)); if (scn && rl) { + /* camera switch wont have updated */ + scn->r.cfra= scene->r.cfra; + scene_camera_switch_update(scn); + scene = scn; srl = rl; } -- cgit v1.2.3