Only show device enum when needed

This commit is contained in:
2018-08-06 16:42:46 +02:00
parent f41931d77b
commit 8cebc726ca

View File

@@ -424,6 +424,8 @@ class BENCHMARK_PT_main(Panel):
sub.scale_y = 64.0
sub.separator()
compute_device_list_get(None, context)
if len(global_cached_compute_devices) > 1:
sub = col.row()
sub.scale_y = 1.5
sub.prop(context.scene, "compute_device", text="")