Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2005-08-21 19:00:17 +0400
committerStephen Swaney <sswaney@centurytel.net>2005-08-21 19:00:17 +0400
commitbb5ae49992ba1b68d8c041699b12689e56442295 (patch)
treef7121a8a42bdcb62a2d00ee6792cbb2dc307e115 /source/blender/python/api2_2x/Texture.c
parent4065cdb550a6200e49ef6e243563e6bac035544d (diff)
A large collection of fixes from Ken Hughes including:
- corrections to constants - parameter type checking - correct use of METH_VARARGS vs METH_NOARGS - return objects instead of strings in Scene.getChildren() as per doc. - correct logical operators Thanks, Ken!
Diffstat (limited to 'source/blender/python/api2_2x/Texture.c')
-rw-r--r--source/blender/python/api2_2x/Texture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Texture.c b/source/blender/python/api2_2x/Texture.c
index a342494d63f..86e6ecc63ee 100644
--- a/source/blender/python/api2_2x/Texture.c
+++ b/source/blender/python/api2_2x/Texture.c
@@ -1068,9 +1068,9 @@ static PyObject *Texture_setContrast( BPy_Texture * self, PyObject * args )
return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected a float" );
- if( contrast < 0 || contrast > 2 )
+ if( contrast < 0.01 || contrast > 5.0 )
return EXPP_ReturnPyObjError( PyExc_ValueError,
- "contrast must be in range [0,2]" );
+ "contrast must be in range [0.01,5.0]" );
self->texture->contrast = contrast;
@@ -1637,9 +1637,9 @@ static PyObject *Texture_setExp( BPy_Texture * self, PyObject * args )
return EXPP_ReturnPyObjError( PyExc_TypeError,
"expected a float" );
- if( vn_mexp < 0 || vn_mexp > 10 )
+ if( vn_mexp < 0.01 || vn_mexp > 10.0 )
return EXPP_ReturnPyObjError( PyExc_ValueError,
- "Exp must be in range [0,10]" );
+ "Exp must be in range [0.01,10.0]" );
self->texture->vn_mexp = vn_mexp;