From 2ced22611ade949a325ffe9d5c56ab4d6e814f1d Mon Sep 17 00:00:00 2001 From: Nikita Sirgienko Date: Wed, 5 Jun 2024 11:53:31 +0200 Subject: [PATCH] Cycles: Fix missing adjustment for device, used for denoising This is a proper fix for the issue worked around in 11d311e300. Previously, an incorrect condition adjustment of the device info was done for a preferred device. Now, this change reverts that condition, and the adjustment is done correctly and unconditionally. --- intern/cycles/blender/device.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/intern/cycles/blender/device.cpp b/intern/cycles/blender/device.cpp index a2fa0183562..cabf15b4ac0 100644 --- a/intern/cycles/blender/device.cpp +++ b/intern/cycles/blender/device.cpp @@ -156,9 +156,7 @@ DeviceInfo blender_device_info(BL::Preferences &b_preferences, } } - if (preferences_device != cpu_device) { - adjust_device_info(preferences_device, cpreferences, preview); - } + adjust_device_info(preferences_device, cpreferences, preview); adjust_device_info(cpu_device, cpreferences, preview); /* Device, which will be used, according to Settings, Scene preferences and command line