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:
authorJoseph Gilbert <ascotan@gmail.com>2007-03-02 00:30:48 +0300
committerJoseph Gilbert <ascotan@gmail.com>2007-03-02 00:30:48 +0300
commit585edac6d2ef35f9199940e9d45aaef412860e45 (patch)
tree7dffb1a303879a5d523d4ba592d310941379780b /source/blender/python/api2_2x/Pose.c
parentccefcc8a79c1f200feecef6e11ba516953b7b5e2 (diff)
various warnings fixes - mostly casting and initialization issues
Diffstat (limited to 'source/blender/python/api2_2x/Pose.c')
-rw-r--r--source/blender/python/api2_2x/Pose.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Pose.c b/source/blender/python/api2_2x/Pose.c
index e7b3434a8a6..2b19668cd67 100644
--- a/source/blender/python/api2_2x/Pose.c
+++ b/source/blender/python/api2_2x/Pose.c
@@ -1004,7 +1004,7 @@ static int PoseBone_setStretch(BPy_PoseBone *self, PyObject *value, void *closur
return EXPP_ReturnIntError( PyExc_TypeError,
"expected float argument" );
- ikstretch = PyFloat_AsDouble(value);
+ ikstretch = (float)PyFloat_AsDouble(value);
if (ikstretch<0) ikstretch = 0.0;
if (ikstretch>1) ikstretch = 1.0;
self->posechannel->ikstretch = ikstretch;
@@ -1028,9 +1028,9 @@ static int PoseBone_setStiff(BPy_PoseBone *self, PyObject *value, void *axis)
return EXPP_ReturnIntError( PyExc_TypeError,
"expected float argument" );
- stiff = PyFloat_AsDouble(value);
+ stiff = (float)PyFloat_AsDouble(value);
if (stiff<0) stiff = 0;
- if (stiff>0.990) stiff = 0.990;
+ if (stiff>0.990) stiff = 0.990f;
self->posechannel->stiffness[(int)axis] = stiff;
return 0;
}