diff options
author | Campbell Barton <ideasman42@gmail.com> | 2006-09-20 21:30:47 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2006-09-20 21:30:47 +0400 |
commit | 78e1426835865ea2acb165103e4d47f695a1aea7 (patch) | |
tree | 1db03a862fd405708cd7dc0c0467c2755fe2bd7d /source/blender/python/api2_2x/gen_utils.c | |
parent | 2446288ad318e3096d16a648fdf9e4a10f700af5 (diff) |
removed warning in EXPP_setVec3Clamped
Diffstat (limited to 'source/blender/python/api2_2x/gen_utils.c')
-rw-r--r-- | source/blender/python/api2_2x/gen_utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/gen_utils.c b/source/blender/python/api2_2x/gen_utils.c index afd3f001917..23128f94805 100644 --- a/source/blender/python/api2_2x/gen_utils.c +++ b/source/blender/python/api2_2x/gen_utils.c @@ -685,15 +685,15 @@ int EXPP_setIValueClamped( PyObject *value, void *param, } } -int EXPP_setVec3Clamped( PyObject *value, float *param[3], +int EXPP_setVec3Clamped( PyObject *value, float *param, float min, float max ) { if( VectorObject_Check( value ) ) { VectorObject *vect = (VectorObject *)value; if( vect->size == 3 ) { - *param[0] = EXPP_ClampFloat( vect->vec[0], min, max ); - *param[1] = EXPP_ClampFloat( vect->vec[1], min, max ); - *param[2] = EXPP_ClampFloat( vect->vec[2], min, max ); + param[0] = EXPP_ClampFloat( vect->vec[0], min, max ); + param[1] = EXPP_ClampFloat( vect->vec[1], min, max ); + param[2] = EXPP_ClampFloat( vect->vec[2], min, max ); return 0; } } |