Store version number of the benchmark client in a separate python file
This commit is contained in:
@@ -6,6 +6,7 @@ import bpy
|
|||||||
|
|
||||||
from ..foundation import util
|
from ..foundation import util
|
||||||
from ..submission import exceptions
|
from ..submission import exceptions
|
||||||
|
from .. import version
|
||||||
|
|
||||||
from . import G
|
from . import G
|
||||||
|
|
||||||
@@ -139,7 +140,7 @@ def _draw_introduction(image_y, ui_scale, window_width, window_height):
|
|||||||
x = 0.5 * window_width
|
x = 0.5 * window_width
|
||||||
y = 0.70 * window_height
|
y = 0.70 * window_height
|
||||||
blf.size(font_id, int(32 * ui_scale), 72)
|
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
|
y -= 32 * ui_scale
|
||||||
blf.size(font_id, int(12 * ui_scale), 72)
|
blf.size(font_id, int(12 * ui_scale), 72)
|
||||||
|
7
benchmark/version.py
Normal file
7
benchmark/version.py
Normal 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'
|
Reference in New Issue
Block a user