diff options
author | Joseph Gilbert <ascotan@gmail.com> | 2005-08-07 16:09:50 +0400 |
---|---|---|
committer | Joseph Gilbert <ascotan@gmail.com> | 2005-08-07 16:09:50 +0400 |
commit | ebd83b9bc4f64f045d2dc86507aa3d4645d4f116 (patch) | |
tree | 289d52776815c1ddb2154e675abc8674835c3b57 /source/blender/python/api2_2x/sceneTimeLine.c | |
parent | 317f7d1446f42f3201e581bb3fc80626bfad0165 (diff) |
_updates and warning fix_
* fixed a few warnings in the python project
* added timeline to py project
Diffstat (limited to 'source/blender/python/api2_2x/sceneTimeLine.c')
-rw-r--r-- | source/blender/python/api2_2x/sceneTimeLine.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/sceneTimeLine.c b/source/blender/python/api2_2x/sceneTimeLine.c index ab0a54a17a9..d4b1710251a 100644 --- a/source/blender/python/api2_2x/sceneTimeLine.c +++ b/source/blender/python/api2_2x/sceneTimeLine.c @@ -176,7 +176,8 @@ static PyObject *TimeLine_getFramesMarked (BPy_TimeLine *self, PyObject *args) { if (tmarker) { int f; char *s= NULL; - if (PyInt_Check (tmarker) && (f= PyInt_AsLong (tmarker)) ) { + f = PyInt_AsLong (tmarker); + if (PyInt_Check (tmarker) && f != 0) { for (marker_it= self->marker_list->first; marker_it; marker_it= marker_it->next) if (marker_it->frame==f) PyList_Append (marker_list, PyString_FromString (marker_it->name)); } |