diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-23 18:20:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-23 18:20:56 +0300 |
commit | f4d3ce197b2eb46d7e27d40d3579d25f8de532e4 (patch) | |
tree | 9c6580d16ad11e6d3750a3eb208e072a58a337a0 | |
parent | c0e26df2598936ddaa55834483094e0d56df6f65 (diff) |
links to Python API docs from splash and help menu
-rw-r--r-- | release/scripts/ui/space_info.py | 9 | ||||
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/release/scripts/ui/space_info.py b/release/scripts/ui/space_info.py index e234f451c89..d4da07a18d9 100644 --- a/release/scripts/ui/space_info.py +++ b/release/scripts/ui/space_info.py @@ -269,6 +269,7 @@ class INFO_MT_help(bpy.types.Menu): layout.separator() layout.operator("help.report_bug", icon='ICON_URL') layout.separator() + layout.operator("help.python_api", icon='ICON_URL') layout.operator("help.operator_cheat_sheet") bpy.types.register(INFO_HT_header) @@ -342,6 +343,13 @@ class HELP_OT_report_bug(HelpOperator): _url = 'http://projects.blender.org/tracker/?atid=498&group_id=9&func=browse' +class HELP_OT_python_api(HelpOperator): + '''Reference for operator and data Python API''' + bl_idname = "help.python_api" + bl_label = "Python API Reference" + _url = 'http://www.blender.org/documentation/250PythonDoc/' + + class HELP_OT_operator_cheat_sheet(bpy.types.Operator): bl_idname = "help.operator_cheat_sheet" bl_label = "Operator Cheat Sheet (new textblock)" @@ -375,4 +383,5 @@ bpy.ops.add(HELP_OT_blender_eshop) bpy.ops.add(HELP_OT_developer_community) bpy.ops.add(HELP_OT_user_community) bpy.ops.add(HELP_OT_report_bug) +bpy.ops.add(HELP_OT_python_api) bpy.ops.add(HELP_OT_operator_cheat_sheet) diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 8eb980d0112..676ba89bad5 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -847,6 +847,7 @@ static uiBlock *wm_block_create_splash(bContext *C, ARegion *ar, void *arg_unuse uiItemO(col, NULL, ICON_URL, "HELP_OT_manual"); uiItemO(col, NULL, ICON_URL, "HELP_OT_blender_website"); uiItemO(col, NULL, ICON_URL, "HELP_OT_user_community"); + uiItemO(col, NULL, ICON_URL, "HELP_OT_python_api"); uiItemS(col); col = uiLayoutColumn(split, 0); |