Final Fix T41222 Blender gives weird ouput when baking (4096*4096) resolution on GPU
[blender-staging.git] / intern / cycles / blender / blender_session.cpp
index 7e104d5bb411fe4fe7e5dedb2c68efa96a02fe51..3e84110c335dad0ee67678a37b0e882535bba4ee 100644 (file)
@@ -529,6 +529,7 @@ void BlenderSession::bake(BL::Object b_object, const string& pass_type, BL::Bake
        SessionParams session_params = BlenderSync::get_session_params(b_engine, b_userpref, b_scene, background);
        BufferParams buffer_params = BlenderSync::get_buffer_params(b_render, b_scene, b_v3d, b_rv3d, scene->camera, width, height);
 
+       scene->bake_manager->set_shader_limit((size_t)b_engine.tile_x(), (size_t)b_engine.tile_y());
        scene->bake_manager->set_baking(true);
 
        /* set number of samples */