added ALPHASORT flag to the bpython api

This commit is contained in:
2008-09-06 10:39:19 +00:00
parent 8675ff6d1d
commit 742e917c6a
2 changed files with 4 additions and 2 deletions

View File

@@ -4163,6 +4163,7 @@ static int MFace_setMode( BPy_MFace *self, PyObject *value )
{
int param;
static short bitmask = TF_DYNAMIC
| TF_ALPHASORT
| TF_TEX
| TF_SHAREDVERT
| TF_LIGHT
@@ -8696,11 +8697,11 @@ static PyObject *M_Mesh_FaceModesDict( void )
if( FM ) {
BPy_constant *d = ( BPy_constant * ) FM;
PyConstant_Insert( d, "BILLBOARD",
PyInt_FromLong( TF_BILLBOARD2 ) );
PyConstant_Insert( d, "BILLBOARD", PyInt_FromLong( TF_BILLBOARD2 ) );
PyConstant_Insert( d, "ALL", PyInt_FromLong( 0xffff ) );
PyConstant_Insert( d, "HALO", PyInt_FromLong( TF_BILLBOARD ) );
PyConstant_Insert( d, "DYNAMIC", PyInt_FromLong( TF_DYNAMIC ) );
PyConstant_Insert( d, "ALPHASORT", PyInt_FromLong( TF_ALPHASORT ) );
PyConstant_Insert( d, "INVISIBLE", PyInt_FromLong( TF_INVISIBLE ) );
PyConstant_Insert( d, "LIGHT", PyInt_FromLong( TF_LIGHT ) );
PyConstant_Insert( d, "OBCOL", PyInt_FromLong( TF_OBCOL ) );

View File

@@ -69,6 +69,7 @@ done once.
- BILLBOARD - always orient after camera.
- HALO - halo face, always point to camera.
- DYNAMIC - respond to collisions.
- ALPHASORT - game engine sorts these faces only.
- INVISIBLE - invisible face.
- LIGHT - dynamic lighting.
- OBCOL - use object color instead of vertex colors.