* 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.
This commit is contained in:
2004-05-25 06:08:49 +00:00
parent 779d0d0221
commit f9fa705cd3
5 changed files with 36 additions and 15 deletions

View File

@@ -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;

View File

@@ -87,6 +87,7 @@ typedef enum {
PYMENU_IMPORT,
PYMENU_EXPORT,
PYMENU_ANIMATION,
PYMENU_UV, /* UV editing tools, to go in UV/Image editor space, 'UV' menu */
PYMENU_TOTAL
} PYMENUHOOKS;