From 04bcaf07dc945578353a8675e1e5003d1c325102 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sat, 4 Jun 2016 23:20:43 +0200 Subject: Fix T48580: path / branched path UI grayed out with OpenCL device that is not used. --- intern/cycles/blender/addon/ui.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 6a109c60ed1..0961c349fc3 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -76,9 +76,8 @@ def use_cuda(context): def use_branched_path(context): cscene = context.scene.cycles - device_type = context.user_preferences.system.compute_device_type - return (cscene.progressive == 'BRANCHED_PATH' and device_type != 'OPENCL') + return (cscene.progressive == 'BRANCHED_PATH' and not use_opencl(context)) def use_sample_all_lights(context): -- cgit v1.2.3