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>2006-05-05 10:57:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-05-05 10:57:33 +0400
commit9681a329c1d8cc40947023139ad56a63c5ea5243 (patch)
tree159e97e9e0daa118727fa09c1b162f14de84ca67 /source/blender/python/BPY_menus.c
parent18a23ab8c91cecbbdfd2389453e1f8233c095075 (diff)
added a python menu slot for weight pain.
Also needed to seperate view3d_paintmenu into view3d_vpaintmenu view3d_tpaintmenu view3d_wpaintmenu The view3d_paintmenu and do_view3d_paintmenu were getting messy and had a lot of if's in it.
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 f6220b87d5c..fd1a99a5a50 100644
--- a/source/blender/python/BPY_menus.c
+++ b/source/blender/python/BPY_menus.c
@@ -97,6 +97,8 @@ static int bpymenu_group_atoi( char *str )
return PYMENU_UV;
else if( !strcmp( str, "FaceSelect" ) )
return PYMENU_FACESELECT;
+ else if( !strcmp( str, "WeightPaint" ) )
+ return PYMENU_WEIGHTPAINT;
/* "Misc" or an inexistent group name: use misc */
else
return PYMENU_MISC;
@@ -153,6 +155,9 @@ char *BPyMenu_group_itoa( short menugroup )
case PYMENU_FACESELECT:
return "FaceSelect";
break;
+ case PYMENU_WEIGHTPAINT:
+ return "WeightPaint";
+ break;
case PYMENU_MISC:
return "Misc";
break;