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-04-02 13:58:01 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-04-02 13:58:01 +0400
commitdabf9378d786b8a27811dcdbe9f2d52c28921bb3 (patch)
tree09834a4fd485a9250edd4858265b2f95e3a1b4bb /source/blender/python/BPY_menus.c
parentd5605414ee50d0d73e330520463c81db48b2ef0a (diff)
added a python slot to the "Add->Mesh" menu.
Diffstat (limited to 'source/blender/python/BPY_menus.c')
-rw-r--r--source/blender/python/BPY_menus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/BPY_menus.c b/source/blender/python/BPY_menus.c
index d4fc6f9a0de..5f16aa0241b 100644
--- a/source/blender/python/BPY_menus.c
+++ b/source/blender/python/BPY_menus.c
@@ -111,6 +111,8 @@ static int bpymenu_group_atoi( char *str )
return PYMENU_SCRIPTTEMPLATE;
else if( !strcmp( str, "MeshFaceKey" ) )
return PYMENU_MESHFACEKEY;
+ else if( !strcmp( str, "AddMesh" ) )
+ return PYMENU_ADDMESH;
/* "Misc" or an inexistent group name: use misc */
else
return PYMENU_MISC;
@@ -188,6 +190,9 @@ char *BPyMenu_group_itoa( short menugroup )
case PYMENU_MESHFACEKEY:
return "MeshFaceKey";
break;
+ case PYMENU_ADDMESH:
+ return "AddMesh";
+ break;
case PYMENU_MISC:
return "Misc";
break;