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/NLA.c | |
parent | ccefcc8a79c1f200feecef6e11ba516953b7b5e2 (diff) |
various warnings fixes - mostly casting and initialization issues
Diffstat (limited to 'source/blender/python/api2_2x/NLA.c')
-rw-r--r-- | source/blender/python/api2_2x/NLA.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/python/api2_2x/NLA.c b/source/blender/python/api2_2x/NLA.c index 17ebaa8335e..5cfed7b4e29 100644 --- a/source/blender/python/api2_2x/NLA.c +++ b/source/blender/python/api2_2x/NLA.c @@ -683,7 +683,7 @@ static int ActionStrip_setRepeat( BPy_ActionStrip * self, PyObject * value ) "This strip has been removed!" ); return EXPP_setFloatClamped( value, &self->strip->repeat, - 0.001, 1000.0f ); + 0.001f, 1000.0f ); } /* @@ -862,7 +862,7 @@ static int ActionStrip_setStrideLength( BPy_ActionStrip * self, PyObject * value "This strip has been removed!" ); return EXPP_setFloatClamped( value, &self->strip->stridelen, - 0.0001, 1000.0 ); + 0.0001f, 1000.0 ); } /* @@ -1027,8 +1027,8 @@ static PyObject *ActionStrip_snapToFrame( BPy_ActionStrip *self ) return EXPP_ReturnPyObjError( PyExc_RuntimeError, "This strip has been removed!" ); - strip->start= floor(strip->start+0.5); - strip->end= floor(strip->end+0.5); + strip->start= (float)floor(strip->start+0.5); + strip->end= (float)floor(strip->end+0.5); Py_RETURN_NONE; } @@ -1398,7 +1398,7 @@ static PyObject *ActionStrips_append( BPy_ActionStrips *self, PyObject * args ) strip->act = act; calc_action_range( strip->act, &strip->actstart, &strip->actend, 1 ); - strip->start = G.scene->r.cfra; + strip->start = (float)G.scene->r.cfra; strip->end = strip->start + ( strip->actend - strip->actstart ); /* simple prevention of zero strips */ if( strip->start > strip->end-2 ) |