===Python API===
Patch to add 'NoSpecular' to Lamp.Modes constant dict, submitted by Jonathan Merritt. Thanks!
This commit is contained in:
@@ -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 ) );
|
||||
}
|
||||
|
||||
@@ -37,6 +37,7 @@ Example::
|
||||
- 'Sphere'
|
||||
- 'Square'
|
||||
- 'NoDiffuse'
|
||||
- 'NoSpecular'
|
||||
- 'RayShadow'
|
||||
|
||||
Example::
|
||||
|
||||
Reference in New Issue
Block a user