Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-10-30 16:02:39 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-10-31 17:54:44 +0300
commit8c6c46469c906bfc6228d783da12a2abc2e7655e (patch)
tree4c36896557661cb4d88f5046520e9074ca5a03a3
parent6df0bfad67e1dbeb84fb6121841305a7f2090b91 (diff)
Fix T71172: Cycles preferences.get_devices() not refreshing Optix devices
-rw-r--r--intern/cycles/blender/addon/properties.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/blender/addon/properties.py b/intern/cycles/blender/addon/properties.py
index 840ab557132..26e1a6a223a 100644
--- a/intern/cycles/blender/addon/properties.py
+++ b/intern/cycles/blender/addon/properties.py
@@ -1467,9 +1467,11 @@ class CyclesPreferences(bpy.types.AddonPreferences):
devices.extend(cpu_devices)
return devices
- # For backwards compatibility, only has CUDA and OpenCL.
+ # For backwards compatibility, only returns CUDA and OpenCL but still
+ # refreshes all devices.
def get_devices(self, compute_device_type=''):
cuda_devices = self.get_devices_for_type('CUDA')
+ self.get_devices_for_type('OPTIX')
opencl_devices = self.get_devices_for_type('OPENCL')
return cuda_devices, opencl_devices