added stress and tangent to MTex and texture mapping dict

This commit is contained in:
Campbell Barton 2007-01-13 05:06:28 +00:00
parent 156ac69aad
commit a935c48fec
3 changed files with 6 additions and 1 deletions

@ -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" );

@ -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;
}

@ -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.