Store version number of the benchmark client in a separate python file

This commit is contained in:
2018-08-14 17:15:36 +02:00
parent 13b766de4a
commit e5bf3b1947
2 changed files with 9 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import bpy
from ..foundation import util
from ..submission import exceptions
from .. import version
from . import G
@@ -139,7 +140,7 @@ def _draw_introduction(image_y, ui_scale, window_width, window_height):
x = 0.5 * window_width
y = 0.70 * window_height
blf.size(font_id, int(32 * ui_scale), 72)
draw_text_center("Blender Benchmark 1.0 Beta", x, y, shadow=True)
draw_text_center(f"Blender Benchmark {version.version_human}", x, y, shadow=True)
y -= 32 * ui_scale
blf.size(font_id, int(12 * ui_scale), 72)

7
benchmark/version.py Normal file
View File

@@ -0,0 +1,7 @@
"""Version info for the Benchmark Client."""
# Included in error reports.
version = '1.0-beta'
# Shown on the splash.
version_human = '1.0 Beta'