API Doc: point to blender2.7 new folder.
master is now for 2.8. ;)
This commit is contained in:
parent
826d7adde7
commit
83dcdfd356
@ -1041,7 +1041,7 @@ class WM_OT_doc_view(Operator):
|
||||
if bpy.app.version_cycle == "release":
|
||||
_prefix = ("https://docs.blender.org/api/current")
|
||||
else:
|
||||
_prefix = ("https://docs.blender.org/api/master")
|
||||
_prefix = ("https://docs.blender.org/api/blender2.7")
|
||||
|
||||
def execute(self, context):
|
||||
url = _wm_doc_get_id(self.doc_id, do_url=True, url_prefix=self._prefix)
|
||||
|
@ -1519,7 +1519,7 @@ static uiBlock *wm_block_create_splash(bContext *C, ARegion *ar, void *UNUSED(ar
|
||||
BLENDER_VERSION / 100, BLENDER_VERSION % 100);
|
||||
}
|
||||
else {
|
||||
BLI_snprintf(url, sizeof(url), "https://docs.blender.org/api/master");
|
||||
BLI_snprintf(url, sizeof(url), "https://docs.blender.org/api/blender2.7");
|
||||
}
|
||||
uiItemStringO(col, IFACE_("Python API Reference"), ICON_URL, "WM_OT_url_open", "url", url);
|
||||
uiItemL(col, "", ICON_NONE);
|
||||
|
Loading…
Reference in New Issue
Block a user