diff options
author | Matt Ebb <matt@mke3.net> | 2004-06-11 06:39:22 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2004-06-11 06:39:22 +0400 |
commit | 79c00d658ef4f24844143f86e07a5f460ad1ebb7 (patch) | |
tree | 63c17d8362015e26d88fb3f544981268bd33831f /source/blender/python | |
parent | d34f89b755e17a7080d18d620b1900d01fb7482e (diff) |
* Added a spot for scripts to register themselves in the Help menu
* Gave the spiffy new 'System Information' script a new home there
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/BPY_menus.c | 7 | ||||
-rw-r--r-- | source/blender/python/BPY_menus.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c index f43b5852a32..5b5d4269df8 100644 --- a/source/blender/python/BPY_menus.c +++ b/source/blender/python/BPY_menus.c @@ -77,6 +77,7 @@ static int bpymenu_group_atoi (char *str) { if (!strcmp(str, "Import")) return PYMENU_IMPORT; else if (!strcmp(str, "Export")) return PYMENU_EXPORT; + else if (!strcmp(str, "Help")) return PYMENU_HELP; else if (!strcmp(str, "Generators")) return PYMENU_GENERATORS; else if (!strcmp(str, "Modifiers")) return PYMENU_MODIFIERS; else if (!strcmp(str, "Wizards")) return PYMENU_WIZARDS; @@ -101,6 +102,9 @@ char *BPyMenu_group_itoa (short menugroup) case PYMENU_GENERATORS: return "Generators"; break; + case PYMENU_HELP: + return "Help"; + break; case PYMENU_MODIFIERS: return "Modifiers"; break; @@ -115,10 +119,13 @@ char *BPyMenu_group_itoa (short menugroup) break; case PYMENU_UV: return "UV"; + break; case PYMENU_UTILS: return "Utils"; + break; case PYMENU_TOOLS: return "Tools"; + break; case PYMENU_MISC: return "Misc"; break; diff --git a/source/blender/python/BPY_menus.h b/source/blender/python/BPY_menus.h index 20e10b06d54..d572371bdfc 100644 --- a/source/blender/python/BPY_menus.h +++ b/source/blender/python/BPY_menus.h @@ -84,6 +84,7 @@ typedef enum { PYMENU_MODIFIERS, /* modifies existing obj *data* */ PYMENU_MISC, PYMENU_MATERIALS, + PYMENU_HELP, /* inserted in the info header 'Help' menu */ PYMENU_GENERATORS, /* creates new objects */ PYMENU_IMPORT, PYMENU_EXPORT, |