diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2007-03-02 00:30:48 +0300 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2007-03-02 00:30:48 +0300 |
commit | 585edac6d2ef35f9199940e9d45aaef412860e45 (patch) | |
tree | 7dffb1a303879a5d523d4ba592d310941379780b /source/blender/python/api2_2x/Constraint.c | |
parent | ccefcc8a79c1f200feecef6e11ba516953b7b5e2 (diff) |
various warnings fixes - mostly casting and initialization issues
Diffstat (limited to 'source/blender/python/api2_2x/Constraint.c')
-rw-r--r-- | source/blender/python/api2_2x/Constraint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Constraint.c b/source/blender/python/api2_2x/Constraint.c index 601fc895992..d95a2e1e9a9 100644 --- a/source/blender/python/api2_2x/Constraint.c +++ b/source/blender/python/api2_2x/Constraint.c @@ -466,9 +466,9 @@ static int kinematic_setter( BPy_Constraint *self, int type, PyObject *value ) case EXPP_CONSTR_CHAINLEN: return EXPP_setIValueClamped( value, &con->rootbone, 0, 255, 'i' ); case EXPP_CONSTR_POSWEIGHT: - return EXPP_setFloatClamped( value, &con->weight, 0.01, 1.0 ); + return EXPP_setFloatClamped( value, &con->weight, 0.01f, 1.0 ); case EXPP_CONSTR_ROTWEIGHT: - return EXPP_setFloatClamped( value, &con->orientweight, 0.01, 1.0 ); + return EXPP_setFloatClamped( value, &con->orientweight, 0.01f, 1.0 ); case EXPP_CONSTR_ROTATE: return EXPP_setBitfield( value, &con->flag, CONSTRAINT_IK_ROT, 'h' ); case EXPP_CONSTR_USETIP: |