forked from bartvdbraak/blender
Code cleanup: UI cleanup for cycles UI code and fix typo in system info.
This commit is contained in:
parent
b6646c6a2a
commit
2069606dc5
@ -1250,11 +1250,7 @@ def draw_device(self, context):
|
||||
layout.prop(cscene, "feature_set")
|
||||
|
||||
device_type = context.user_preferences.system.compute_device_type
|
||||
if device_type == 'CUDA':
|
||||
layout.prop(cscene, "device")
|
||||
elif device_type == 'OPENCL':
|
||||
layout.prop(cscene, "device")
|
||||
elif device_type == 'NETWORK':
|
||||
if device_type in ('CUDA', 'OPENCL', 'NETWORK'):
|
||||
layout.prop(cscene, "device")
|
||||
|
||||
if engine.with_osl() and (cscene.device == 'CPU' or device_type == 'NONE'):
|
||||
|
@ -138,7 +138,7 @@ def write_sysinfo(op):
|
||||
else:
|
||||
output.write("Blender was built without OpenImageIO support\n")
|
||||
|
||||
output.write("OpenShadingLanguuage: ")
|
||||
output.write("OpenShadingLanguage: ")
|
||||
if bpy.app.build_options.cycles:
|
||||
if bpy.app.build_options.cycles_osl:
|
||||
from _cycles import osl_version_string
|
||||
|
Loading…
Reference in New Issue
Block a user