diff options
Diffstat (limited to 'source/blender/python/api2_2x')
-rw-r--r-- | source/blender/python/api2_2x/MTex.c | 3 | ||||
-rw-r--r-- | source/blender/python/api2_2x/Texture.c | 2 | ||||
-rw-r--r-- | source/blender/python/api2_2x/doc/Texture.py | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/MTex.c b/source/blender/python/api2_2x/MTex.c index 6e896448792..7e9671dfd62 100644 --- a/source/blender/python/api2_2x/MTex.c +++ b/source/blender/python/api2_2x/MTex.c @@ -373,7 +373,8 @@ static int MTex_setTexCo( BPy_MTex *self, PyObject *value, void *closure) if (texco != TEXCO_ORCO && texco != TEXCO_REFL && texco != TEXCO_NORM && texco != TEXCO_GLOB && texco != TEXCO_UV && texco != TEXCO_OBJECT && - texco != TEXCO_WINDOW && texco != TEXCO_VIEW && texco != TEXCO_STICKY ) + texco != TEXCO_STRESS && texco != TEXCO_TANGENT && texco != TEXCO_WINDOW && + texco != TEXCO_VIEW && texco != TEXCO_STICKY ) return EXPP_ReturnIntError( PyExc_ValueError, "Value must be a member of Texture.TexCo dictionary" ); diff --git a/source/blender/python/api2_2x/Texture.c b/source/blender/python/api2_2x/Texture.c index 5fdfc7cfaea..830590aa189 100644 --- a/source/blender/python/api2_2x/Texture.c +++ b/source/blender/python/api2_2x/Texture.c @@ -1113,6 +1113,8 @@ static PyObject *M_Texture_TexCoDict( void ) PyConstant_Insert(d, "WIN", PyInt_FromLong(TEXCO_WINDOW)); PyConstant_Insert(d, "VIEW", PyInt_FromLong(TEXCO_VIEW)); PyConstant_Insert(d, "STICK", PyInt_FromLong(TEXCO_STICKY)); + PyConstant_Insert(d, "STRESS", PyInt_FromLong(TEXCO_STRESS)); + PyConstant_Insert(d, "TANGENT", PyInt_FromLong(TEXCO_TANGENT)); } return TexCo; } diff --git a/source/blender/python/api2_2x/doc/Texture.py b/source/blender/python/api2_2x/doc/Texture.py index bd946298567..ab10299349f 100644 --- a/source/blender/python/api2_2x/doc/Texture.py +++ b/source/blender/python/api2_2x/doc/Texture.py @@ -200,6 +200,8 @@ Example:: - WIN - Use screen coordinates as texture coordinates - VIEW - Pass camera view vector on to the texture (World texture only!) - STICK - Use mesh sticky coordinates for the texture coordinates + - STRESS - Use mesh stress coordinates for the texture coordinates + - TANGENT - Use mesh tangent coordinates for the texture coordinates @type TexCo: readonly dictionary @var MapTo: Flags for MTex.mapto. |