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>2005-08-07 16:09:50 +0400
committerJoseph Gilbert <ascotan@gmail.com>2005-08-07 16:09:50 +0400
commitebd83b9bc4f64f045d2dc86507aa3d4645d4f116 (patch)
tree289d52776815c1ddb2154e675abc8674835c3b57 /source/blender/python/api2_2x/sceneTimeLine.c
parent317f7d1446f42f3201e581bb3fc80626bfad0165 (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.c3
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));
}