Cycles / OSL:

* OSL UI message did not show up when device type was GPU, but User Preferences were None. Also remove experimental check, more convenient for testing.
This commit is contained in:
Thomas Dinges 2012-10-06 17:11:53 +00:00
parent 0c0fa7dde6
commit f7d61831e1

@ -955,7 +955,7 @@ def draw_device(self, context):
elif device_type == 'OPENCL' and cscene.feature_set == 'EXPERIMENTAL': elif device_type == 'OPENCL' and cscene.feature_set == 'EXPERIMENTAL':
layout.prop(cscene, "device") layout.prop(cscene, "device")
if cscene.feature_set == 'EXPERIMENTAL' and cscene.device == 'CPU' and engine.with_osl(): if engine.with_osl() and (cscene.device == 'CPU' or device_type == 'None'):
layout.prop(cscene, "shading_system") layout.prop(cscene, "shading_system")