diff options
author | Matt Ebb <matt@mke3.net> | 2004-05-25 10:08:49 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2004-05-25 10:08:49 +0400 |
commit | f9fa705cd3c6de502e0d15c182dd6eddd99ede3f (patch) | |
tree | 3bc602b5e53dcbad6123fbc1715db3e4f71b2469 /source/blender/python/BPY_menus.c | |
parent | 779d0d02213c8a783a4f5a3935c0a7d96c4b3850 (diff) |
* Added support for python scripts to register themselves
in the UV/Image editor 'UVs' menu
Script authors can use:
Group: 'UV'
in the headers of their scripts to let them appear in
this menu.
* Updated the UV Face Layout script to reside in the UVs
menu, rather than the (incorrect) File->Export menu.
Diffstat (limited to 'source/blender/python/BPY_menus.c')
-rw-r--r-- | source/blender/python/BPY_menus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c index b1d392f3b7f..f2879f654c1 100644 --- a/source/blender/python/BPY_menus.c +++ b/source/blender/python/BPY_menus.c @@ -82,6 +82,7 @@ static int bpymenu_group_atoi (char *str) else if (!strcmp(str, "Wizards")) return PYMENU_WIZARDS; else if (!strcmp(str, "Animation")) return PYMENU_ANIMATION; else if (!strcmp(str, "Materials")) return PYMENU_MATERIALS; + else if (!strcmp(str, "UV")) return PYMENU_UV; /* "Misc" or an inexistent group name: use misc */ else return PYMENU_MISC; } @@ -110,6 +111,8 @@ char *BPyMenu_group_itoa (short menugroup) case PYMENU_MATERIALS: return "Materials"; break; + case PYMENU_UV: + return "UV"; case PYMENU_MISC: return "Misc"; break; |