diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-07-11 13:04:27 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-07-11 13:13:11 +0300 |
commit | 03d8bfb1447593f8460ce9d67ba17eabcb1aec3d (patch) | |
tree | e368e56272c0f15a92fdd1729cd4cec22fc22131 /release | |
parent | 7c48b6c84cbbeb76b9fea5f9bee70e833afc7b8e (diff) |
API Doc link: make releases/RC's point to their own version of the doc.
Sounds kind of stupid to have 2.79 pointing to "current" which is now
2.80 API doc... Let's try to avoid that in future.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/wm.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py index b68ef3da6da..5cc4b773b54 100644 --- a/release/scripts/startup/bl_operators/wm.py +++ b/release/scripts/startup/bl_operators/wm.py @@ -1023,7 +1023,8 @@ class WM_OT_doc_view(Operator): doc_id: doc_id if bpy.app.version_cycle in {"release", "rc"}: - _prefix = ("https://docs.blender.org/api/current") + _prefix = ("https://docs.blender.org/api/%d.%d%s" % + (bpy.app.version[0], bpy.app.version[1], bpy.app.version_char)) else: _prefix = ("https://docs.blender.org/api/master") |