diff options
author | Ken Hughes <khughes@pacific.edu> | 2007-03-09 03:11:02 +0300 |
---|---|---|
committer | Ken Hughes <khughes@pacific.edu> | 2007-03-09 03:11:02 +0300 |
commit | b8e236a8611cb40f041a8113cf032df5d0054a60 (patch) | |
tree | 4f1860aed1b8cbcb13b1906a4cb75c922e6d3bec /source/blender/python/api2_2x/Scene.c | |
parent | 5eaf9f90c1acc1b337a3fee38887f5db2a46ac81 (diff) |
Python API
----------
Fix bug with variable declaration in middle of function.
Diffstat (limited to 'source/blender/python/api2_2x/Scene.c')
-rw-r--r-- | source/blender/python/api2_2x/Scene.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c index 8c8c2bda89c..1518e953eba 100644 --- a/source/blender/python/api2_2x/Scene.c +++ b/source/blender/python/api2_2x/Scene.c @@ -1663,11 +1663,12 @@ PyObject *SceneObSeq_getCamera(BPy_SceneObSeq *self) static int SceneObSeq_setCamera(BPy_SceneObSeq *self, PyObject *value) { - SCENE_DEL_CHECK_INT(self->bpyscene); int ret; + + SCENE_DEL_CHECK_INT(self->bpyscene); if (self->mode!=EXPP_OBSEQ_NORMAL) - return (EXPP_ReturnIntError( PyExc_TypeError, - "cannot set camera from objects.selected or objects.context" )); + return EXPP_ReturnIntError( PyExc_TypeError, + "cannot set camera from objects.selected or objects.context" ); ret = GenericLib_assignData(value, (void **) &self->bpyscene->scene->camera, 0, 0, ID_OB, 0); |