diff options
author | Johnny Matthews <johnny.matthews@gmail.com> | 2006-03-13 17:44:49 +0300 |
---|---|---|
committer | Johnny Matthews <johnny.matthews@gmail.com> | 2006-03-13 17:44:49 +0300 |
commit | f913a53b0a6e5aa0b16d3c88733276c0369e4e7b (patch) | |
tree | 03629aab4003c4a0f2bf858f26e029b14f145069 /source | |
parent | 50b34df3488100a970215a1ab4f35e72d641c6fa (diff) |
A small alteration for C syntax, code before vars (MSVC complained about this).
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/api2_2x/Scene.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c index 84f25ea4540..51c425f43e9 100644 --- a/source/blender/python/api2_2x/Scene.c +++ b/source/blender/python/api2_2x/Scene.c @@ -1081,11 +1081,12 @@ static PyObject *Scene_play( BPy_Scene * self, PyObject * args ) static PyObject *Scene_getTimeLine( BPy_Scene *self ) { + BPy_TimeLine *tm; + if( !(self->scene) ) return EXPP_ReturnPyObjError( PyExc_RuntimeError, "Blender scene was deleted!" ); - - BPy_TimeLine *tm; + tm= (BPy_TimeLine *) PyObject_NEW (BPy_TimeLine, &TimeLine_Type); if (!tm) |