Fix T48580: path / branched path UI grayed out with OpenCL device that is not used.

This commit is contained in:
Brecht Van Lommel 2016-06-04 23:20:43 +02:00
parent 234801c8dc
commit 04bcaf07dc

@ -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):