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:
authorCampbell Barton <ideasman42@gmail.com>2006-09-20 21:30:47 +0400
committerCampbell Barton <ideasman42@gmail.com>2006-09-20 21:30:47 +0400
commit78e1426835865ea2acb165103e4d47f695a1aea7 (patch)
tree1db03a862fd405708cd7dc0c0467c2755fe2bd7d /source/blender/python/api2_2x/gen_utils.c
parent2446288ad318e3096d16a648fdf9e4a10f700af5 (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.c8
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;
}
}