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
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')
-rw-r--r--source/blender/python/BPY_menus.c5
-rw-r--r--source/blender/python/BPY_menus.h1
-rw-r--r--source/blender/python/api2_2x/doc/API_intro.py4
-rw-r--r--source/blender/python/api2_2x/doc/API_related.py4
4 files changed, 10 insertions, 4 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;
diff --git a/source/blender/python/BPY_menus.h b/source/blender/python/BPY_menus.h
index 8ef94b1ce79..523a6c95403 100644
--- a/source/blender/python/BPY_menus.h
+++ b/source/blender/python/BPY_menus.h
@@ -96,6 +96,7 @@ typedef enum {
* see define right below */
PYMENU_FACESELECT,
+ PYMENU_WEIGHTPAINT,
PYMENU_HELP,/*Main Help menu items - prob best to leave for 'official' ones*/
PYMENU_HELPSYSTEM,/* Resources, troubleshooting, system tools */
PYMENU_HELPWEBSITES,/* Help -> Websites submenu */
diff --git a/source/blender/python/api2_2x/doc/API_intro.py b/source/blender/python/api2_2x/doc/API_intro.py
index e255a58dd1f..b325db237c5 100644
--- a/source/blender/python/api2_2x/doc/API_intro.py
+++ b/source/blender/python/api2_2x/doc/API_intro.py
@@ -217,8 +217,8 @@ A note to newbie script writers:
to get an idea of what can be done, you may be surprised.
@author: The Blender Python Team
-@requires: Blender 2.37 or newer.
-@version: 2.37
+@requires: Blender 2.42 or newer.
+@version: 2.42
@see: U{www.blender3d.org<http://www.blender3d.org>}: main site
@see: U{www.blender.org<http://www.blender.org>}: documentation and forum
@see: U{www.elysiun.com<http://www.elysiun.com>}: user forum
diff --git a/source/blender/python/api2_2x/doc/API_related.py b/source/blender/python/api2_2x/doc/API_related.py
index 9050ed0f715..fb84569f601 100644
--- a/source/blender/python/api2_2x/doc/API_related.py
+++ b/source/blender/python/api2_2x/doc/API_related.py
@@ -49,8 +49,8 @@ Introduction:
-------------------
To pass parameters to the script you can:
- - write them to a file before running Blender, then make your script parse that file;
- - set environment variables and access them with the 'os' module:
+ - write them to a file before running Blender, then make your script parse that file;
+ - set environment variables and access them with the 'os' module:
Examples with parameters being passed to the script via command line::