Fix #33107: cycles fixed threads 1 was still having two cores do work,
[blender.git] / intern / cycles / blender / blender_sync.cpp
index c63f72c68c67b8790fc3f28b1e778c229a357692..024cb1685d0eab188968d88412bd67c72cbcbea1 100644 (file)
@@ -379,7 +379,10 @@ SessionParams BlenderSync::get_session_params(BL::RenderEngine b_engine, BL::Use
        params.start_resolution = get_int(cscene, "preview_start_resolution");
 
        /* other parameters */
-       params.threads = b_scene.render().threads();
+       if(b_scene.render().threads_mode() == BL::RenderSettings::threads_mode_FIXED)
+               params.threads = b_scene.render().threads();
+       else
+               params.threads = 0;
 
        params.cancel_timeout = get_float(cscene, "debug_cancel_timeout");
        params.reset_timeout = get_float(cscene, "debug_reset_timeout");