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)