diff options
author | Willian Padovani Germano <wpgermano@gmail.com> | 2004-06-07 05:34:15 +0400 |
---|---|---|
committer | Willian Padovani Germano <wpgermano@gmail.com> | 2004-06-07 05:34:15 +0400 |
commit | b82be27659f19b2916e0744a881ef7659f232ade (patch) | |
tree | 8fd59e27a0a346d28df1c8f522d13df4c1548dc6 /source/blender | |
parent | 372636c116b30adf8494bc035e1d6521e519fcd4 (diff) |
Bundled scripts:
-starting updates and new additions for Blender 2.34:
Some of the new scripts require Python modules not builtin with Blender, so you either need a full Python install or the needed extra modules. This is an ongoing work, there should be more scripts, better testing and also proper ways to tell users they don't have all expected modules. It's expected that Win users won't need full Python installs, since we can provide a minimal zip with the needed modules from 2.34 on.
Thanks to Anthony D'Agostino (scorpius), Jean-Michel Soler (jms) and Campbell Barton (Cam / ideasman) for donating the scripts now added / updated.
BPython:
-added two new script menu groups: Tools and Utils. We still need to find places elsewhere in the gui where the groups can be put.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/BPY_menus.c | 6 | ||||
-rw-r--r-- | source/blender/python/BPY_menus.h | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c index f2879f654c1..f43b5852a32 100644 --- a/source/blender/python/BPY_menus.c +++ b/source/blender/python/BPY_menus.c @@ -83,6 +83,8 @@ static int bpymenu_group_atoi (char *str) else if (!strcmp(str, "Animation")) return PYMENU_ANIMATION; else if (!strcmp(str, "Materials")) return PYMENU_MATERIALS; else if (!strcmp(str, "UV")) return PYMENU_UV; + else if (!strcmp(str, "Utils")) return PYMENU_UTILS; + else if (!strcmp(str, "Tools")) return PYMENU_TOOLS; /* "Misc" or an inexistent group name: use misc */ else return PYMENU_MISC; } @@ -113,6 +115,10 @@ char *BPyMenu_group_itoa (short menugroup) break; case PYMENU_UV: return "UV"; + case PYMENU_UTILS: + return "Utils"; + case PYMENU_TOOLS: + return "Tools"; case PYMENU_MISC: return "Misc"; break; diff --git a/source/blender/python/BPY_menus.h b/source/blender/python/BPY_menus.h index 5e7139f213e..20e10b06d54 100644 --- a/source/blender/python/BPY_menus.h +++ b/source/blender/python/BPY_menus.h @@ -75,19 +75,19 @@ typedef struct BPyMenu { * BPY_menus.c; * - add the necessary code to the header_***.c file in * source/blender/src/, like done in header_info.c for import/export; - * - update the bpython registering function and its documentation to include - * the new group. */ typedef enum { PYMENU_WIZARDS, /* complex 'app' scripts */ - PYMENU_MODIFIERS, /* modifies existing objs */ + PYMENU_UV, /* UV editing tools, to go in UV/Image editor space, 'UV' menu */ + PYMENU_UTILS, + PYMENU_TOOLS, + PYMENU_MODIFIERS, /* modifies existing obj *data* */ PYMENU_MISC, PYMENU_MATERIALS, PYMENU_GENERATORS, /* creates new objects */ PYMENU_IMPORT, PYMENU_EXPORT, PYMENU_ANIMATION, - PYMENU_UV, /* UV editing tools, to go in UV/Image editor space, 'UV' menu */ PYMENU_TOTAL } PYMENUHOOKS; |