===Python API===

Patch to add 'NoSpecular' to Lamp.Modes constant dict, submitted by Jonathan
Merritt.  Thanks!
This commit is contained in:
Ken Hughes
2006-06-04 13:16:31 +00:00
parent 73e5693bea
commit cc28a00d15
2 changed files with 3 additions and 0 deletions

View File

@@ -782,6 +782,8 @@ static PyObject *Lamp_ModesDict( void )
PyInt_FromLong( EXPP_LAMP_MODE_ONLYSHADOW ) );
PyConstant_Insert( c, "NoDiffuse",
PyInt_FromLong( EXPP_LAMP_MODE_NODIFFUSE ) );
PyConstant_Insert( c, "NoSpecular",
PyInt_FromLong( EXPP_LAMP_MODE_NOSPECULAR ) );
PyConstant_Insert( c, "RayShadow",
PyInt_FromLong( EXPP_LAMP_MODE_SHAD_RAY ) );
}

View File

@@ -37,6 +37,7 @@ Example::
- 'Sphere'
- 'Square'
- 'NoDiffuse'
- 'NoSpecular'
- 'RayShadow'
Example::