Formatting

This commit is contained in:
2018-08-14 13:34:20 +02:00
parent 9af1ca1c49
commit 4ae3f418c6

View File

@@ -68,7 +68,6 @@ WELCOME_TEXT = "Run the Quick Benchmark on the selected device to\n" \
BLURB_TEXT = "Share your results with the world!\n" \
"Manage the uploaded benchmark data on your Blender ID."
################################################################################
# Draw Utilities.
@@ -256,6 +255,7 @@ def benchmark_draw_post_pixel(arg1, arg2):
handle_draw = bpy.types.SpaceBenchmark.draw_handler_add(
benchmark_draw_post_pixel, (None, None), 'WINDOW', 'POST_PIXEL')
################################################################################
# Benchmark foundation integration.
@@ -339,6 +339,7 @@ class LoggerProviderSink:
def FATAL(self, *args):
pass
################################################################################
# Benchmark thread.
@@ -632,7 +633,8 @@ def blender_executable_get():
elif system == "Windows":
return os.path.join(benchmark_data_dir, "blender", "blender.exe")
elif system == "Darwin":
return os.path.join(benchmark_data_dir, "blender", "blender.app", "Contents", "MacOS", "blender")
return os.path.join(benchmark_data_dir, "blender", "blender.app", "Contents", "MacOS",
"blender")
else:
raise Exception("Needs implementation")
@@ -882,6 +884,7 @@ class BENCHMARK_OT_opendata_link(bpy.types.Operator):
bpy.ops.wm.url_open('INVOKE_DEFAULT', url="https://opendata.blender.org")
return {'FINISHED'}
################################################################################
# Restart benchmark.
@@ -894,6 +897,7 @@ class BENCHMARK_OT_restart(bpy.types.Operator):
G.reset()
return {'FINISHED'}
################################################################################
# Configuration.
@@ -976,6 +980,7 @@ def compute_device_list_get(self, context):
G.cached_compute_devices = compute_devices
return compute_devices
################################################################################
# Tweak User Preferences