Cycles; Make baking a feature-specific option
[blender-staging.git] / intern / cycles / render / session.cpp
index 57c1500628a057ae755664379b8c0a4908db1e00..f3acebd33d5238b344e7efc08a6ee4460ad57e4e 100644 (file)
@@ -637,6 +637,9 @@ DeviceRequestedFeatures Session::get_requested_device_features()
                requested_features.use_camera_motion |= mesh->use_motion_blur;
        }
 
+       BakeManager *bake_manager = scene->bake_manager;
+       requested_features.use_baking = bake_manager->get_baking();
+
        return requested_features;
 }