Fix #35711: cycles border render issue after recent changes.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 11 Jun 2013 14:15:46 +0000 (14:15 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 11 Jun 2013 14:15:46 +0000 (14:15 +0000)
intern/cycles/blender/blender_session.cpp

index fdce4b16b57f20a30959caa79c1b306a21734d89..c981e379333496f19c1ccdc7bd4271e72f025e68 100644 (file)
@@ -102,11 +102,14 @@ void BlenderSession::create_session()
        /* create sync */
        sync = new BlenderSync(b_engine, b_data, b_scene, scene, !background, session->progress, session_params.device.type == DEVICE_CPU);
 
-       /* for final render we will do sync per render layer */
+       /* for final render we will do data sync per render layer */
        if(b_v3d) {
                sync->sync_data(b_v3d, b_engine.camera_override());
                sync->sync_view(b_v3d, b_rv3d, width, height);
        }
+       else {
+               sync->sync_camera(b_render, b_engine.camera_override(), width, height);
+       }
 
        /* set buffer parameters */
        BufferParams buffer_params = BlenderSync::get_buffer_params(b_render, b_scene, b_v3d, b_rv3d, scene->camera, width, height);