[Bf-blender-cvs] [9163fc0] master: Cycles: Fix typo in flags check
Sergey Sharybin
noreply at git.blender.org
Sun Jan 24 13:05:17 CET 2016
Commit: 9163fc05a7c1cdb39aca96d120e4a2b52a68fa5d
Author: Sergey Sharybin
Date: Sun Jan 24 17:05:02 2016 +0500
Branches: master
https://developer.blender.org/rB9163fc05a7c1cdb39aca96d120e4a2b52a68fa5d
Cycles: Fix typo in flags check
===================================================================
M intern/cycles/device/device.cpp
===================================================================
diff --git a/intern/cycles/device/device.cpp b/intern/cycles/device/device.cpp
index fd52b11..02e9b05 100644
--- a/intern/cycles/device/device.cpp
+++ b/intern/cycles/device/device.cpp
@@ -313,7 +313,7 @@ vector<DeviceInfo>& Device::available_devices()
{
static vector<DeviceInfo> devices;
- if(need_types_update) {
+ if(need_devices_update) {
devices.clear();
#ifdef WITH_CUDA
if(device_cuda_init())
@@ -335,7 +335,7 @@ vector<DeviceInfo>& Device::available_devices()
device_network_info(devices);
#endif
- need_types_update = false;
+ need_devices_update = false;
}
return devices;
More information about the Bf-blender-cvs
mailing list