Cycles: Fix Python error in has_oidn_gpu_devices

Was introduced during refactoring in bc886857f34878f2fd79031619a5ff8d10013347
This commit is contained in:
Nikita Sirgienko 2024-02-06 20:26:05 +01:00
parent 0100547515
commit c174fd4e06

@ -1603,7 +1603,7 @@ class CyclesPreferences(bpy.types.AddonPreferences):
def has_oidn_gpu_devices(self):
import _cycles
compute_device_type = context.preferences.addons[__package__].preferences.get_compute_device_type()
compute_device_type = self.get_compute_device_type()
# We need non-CPU devices, used for rendering and supporting OIDN GPU denoising
for device in _cycles.available_devices(compute_device_type):