From 78e1426835865ea2acb165103e4d47f695a1aea7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 20 Sep 2006 17:30:47 +0000 Subject: [PATCH] removed warning in EXPP_setVec3Clamped --- source/blender/python/api2_2x/Modifier.c | 4 ++-- source/blender/python/api2_2x/gen_utils.c | 8 ++++---- source/blender/python/api2_2x/gen_utils.h | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/source/blender/python/api2_2x/Modifier.c b/source/blender/python/api2_2x/Modifier.c index c3c49ffbee5..89faa8c86d9 100644 --- a/source/blender/python/api2_2x/Modifier.c +++ b/source/blender/python/api2_2x/Modifier.c @@ -675,9 +675,9 @@ static int array_setter( BPy_Modifier *self, int type, PyObject *value ) case EXPP_MOD_MERGE_DIST: return EXPP_setFloatClamped( value, &md->merge_dist, 0.0, 1000.0 ); case EXPP_MOD_OFFSET_VEC: - return EXPP_setVec3Clamped( value, &md->offset, -10000.0, 10000.0 ); + return EXPP_setVec3Clamped( value, md->offset, -10000.0, 10000.0 ); case EXPP_MOD_SCALE_VEC: - return EXPP_setVec3Clamped( value, &md->scale, -10000.0, 10000.0 ); + return EXPP_setVec3Clamped( value, md->scale, -10000.0, 10000.0 ); default: return EXPP_ReturnIntError( PyExc_KeyError, "key not found" ); } 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; } } diff --git a/source/blender/python/api2_2x/gen_utils.h b/source/blender/python/api2_2x/gen_utils.h index 2c75c074c06..b9400267ca5 100644 --- a/source/blender/python/api2_2x/gen_utils.h +++ b/source/blender/python/api2_2x/gen_utils.h @@ -114,7 +114,7 @@ int EXPP_setIValueClamped( PyObject *value, void *param, int min, int max, char type ); int EXPP_setFloatClamped ( PyObject *value, float *param, float min, float max); -int EXPP_setVec3Clamped ( PyObject *value, float *param[3], +int EXPP_setVec3Clamped ( PyObject *value, float *param, float min, float max); int EXPP_setIValueRange( PyObject *value, void *param, int min, int max, char type );