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
path: root/source
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2007-05-29 14:28:19 +0400
committerJoshua Leung <aligorith@gmail.com>2007-05-29 14:28:19 +0400
commit044607a450e8b8d230d52155e19541f8e9473f78 (patch)
tree1099437fceeb8b4e46b2bb1006dac745ede1b9d2 /source
parent92f1d59b44f67c5ccbe020f0fb484da3d147f52d (diff)
== PY API ==
Added some braces to silence gcc warnings about scene.c
Diffstat (limited to 'source')
-rw-r--r--source/blender/python/api2_2x/Scene.c6
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,