Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-01 17:34:10 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-07-01 17:53:41 +0300
commit69b5a06823ff00c57af8c6b5c3eeafd5fdd5f02a (patch)
tree659c3a5619df4051ca089f6079899e94df7a848d /release/scripts
parent9197462e07a816f9cd3d99643c4b5fbbf07063c4 (diff)
Docs: for release builds, link to specific manual version
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_topbar.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 7afb417792c..cd0ef52e981 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -570,9 +570,14 @@ class TOPBAR_MT_help(Menu):
show_developer = context.preferences.view.show_developer_ui
+ if bpy.app.version_cycle in {'rc', 'release'}:
+ manual_version = '%d.%d' % bpy.app.version[:2]
+ else:
+ manual_version = 'dev'
+
layout.operator(
"wm.url_open", text="Manual", icon='HELP',
- ).url = "https://docs.blender.org/manual/en/dev/"
+ ).url = "https://docs.blender.org/manual/en/" + manual_version + "/"
layout.operator(
"wm.url_open", text="Tutorials", icon='URL',
).url = "https://www.blender.org/tutorials"