diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-05-29 14:28:19 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-05-29 14:28:19 +0400 |
commit | 044607a450e8b8d230d52155e19541f8e9473f78 (patch) | |
tree | 1099437fceeb8b4e46b2bb1006dac745ede1b9d2 /source/blender/python/api2_2x/Scene.c | |
parent | 92f1d59b44f67c5ccbe020f0fb484da3d147f52d (diff) |
== PY API ==
Added some braces to silence gcc warnings about scene.c
Diffstat (limited to 'source/blender/python/api2_2x/Scene.c')
-rw-r--r-- | source/blender/python/api2_2x/Scene.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c index 39a7f0d77f4..fd139c4fe6e 100644 --- a/source/blender/python/api2_2x/Scene.c +++ b/source/blender/python/api2_2x/Scene.c @@ -1343,16 +1343,18 @@ static PyObject *SceneObSeq_item( BPy_SceneObSeq * self, int i ) if (self->mode==EXPP_OBSEQ_NORMAL) for (base= scene->base.first; base && i!=index; base= base->next, index++) {} /* selected */ - else if (self->mode==EXPP_OBSEQ_SELECTED) + else if (self->mode==EXPP_OBSEQ_SELECTED) { for (base= scene->base.first; base && i!=index; base= base->next) if (base->flag & SELECT) index++; + } /* context */ - else if (self->mode==EXPP_OBSEQ_CONTEXT) + else if (self->mode==EXPP_OBSEQ_CONTEXT) { if (G.vd) for (base= scene->base.first; base && i!=index; base= base->next) if TESTBASE(base) index++; + } if (!(base)) return EXPP_ReturnPyObjError( PyExc_IndexError, |