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:
authorAaron Carlisle <carlisle.b3d@gmail.com>2022-02-23 22:59:51 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2022-02-23 23:00:16 +0300
commit86fc63c4ca9d36eae7512c5c3e640285d84415d1 (patch)
tree7efdfd0413291fb8e299b406bd5905f869ce7b49 /release/scripts/modules/addon_utils.py
parent6ca85a8cf1f30ea36eaebe28484ae183d836811d (diff)
Cleanup: Simplify manual url version handling
Recently we changed the build pipeline to always create a version number in the url and point 'dev' to the latest version rather than creating the version number url once we release. This makes the check to `bpy.app.version_cycle` unnecessary.
Diffstat (limited to 'release/scripts/modules/addon_utils.py')
-rw-r--r--release/scripts/modules/addon_utils.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/release/scripts/modules/addon_utils.py b/release/scripts/modules/addon_utils.py
index 554150de87d..3e823f2b6b7 100644
--- a/release/scripts/modules/addon_utils.py
+++ b/release/scripts/modules/addon_utils.py
@@ -489,12 +489,7 @@ def disable_all():
def _blender_manual_url_prefix():
- if _bpy.app.version_cycle in {"rc", "release"}:
- manual_version = "%d.%d" % _bpy.app.version[:2]
- else:
- manual_version = "dev"
-
- return "https://docs.blender.org/manual/en/" + manual_version
+ return "https://docs.blender.org/manual/en/%d.%d" % _bpy.app.version[:2]
def module_bl_info(mod, *, info_basis=None):