Only show device enum when needed
This commit is contained in:
@@ -424,10 +424,12 @@ class BENCHMARK_PT_main(Panel):
|
||||
sub.scale_y = 64.0
|
||||
sub.separator()
|
||||
|
||||
sub = col.row()
|
||||
sub.scale_y = 1.5
|
||||
sub.prop(context.scene, "compute_device", text="")
|
||||
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="")
|
||||
sub.separator()
|
||||
|
||||
sub = col.row()
|
||||
sub.scale_y = 2.25
|
||||
|
Reference in New Issue
Block a user