Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-02-21 14:17:17 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-02-21 14:17:17 +0300
commitf71458b90483e33923e706e1b6aa6612dd0fd425 (patch)
tree7850f63e7ee8bb4462d7125041434fa35c358a8a /source/blender/python/BPY_menus.c
parent6831c0453371f7b90428686e74b485f76620cf9d (diff)
adding menu slot Armature
adding menu slot ScriptTemplate new script scripttemplate_mesh_edit is a template for an editmesh script. The function Text makeCurrent() is a dummy until I can get it working when the script runs from a menu.
Diffstat (limited to 'source/blender/python/BPY_menus.c')
-rw-r--r--source/blender/python/BPY_menus.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c
index 2a53ba1adf1..9b4a5721d4c 100644
--- a/source/blender/python/BPY_menus.c
+++ b/source/blender/python/BPY_menus.c
@@ -105,6 +105,10 @@ static int bpymenu_group_atoi( char *str )
return PYMENU_VERTEXPAINT;
else if( !strcmp( str, "UVCalculation" ) )
return PYMENU_UVCALCULATION;
+ else if( !strcmp( str, "Armature" ) )
+ return PYMENU_ARMATURE;
+ else if( !strcmp( str, "ScriptTemplate" ) )
+ return PYMENU_SCRIPTTEMPLATE;
/* "Misc" or an inexistent group name: use misc */
else
return PYMENU_MISC;
@@ -173,6 +177,12 @@ char *BPyMenu_group_itoa( short menugroup )
case PYMENU_UVCALCULATION:
return "UVCalculation";
break;
+ case PYMENU_ARMATURE:
+ return "Armature";
+ break;
+ case PYMENU_SCRIPTTEMPLATE:
+ return "ScriptTemplate";
+ break;
case PYMENU_MISC:
return "Misc";
break;