diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-03-04 00:43:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-03-04 00:43:31 +0300 |
commit | c7d0a2a92a0029573130896ae93171cfb055c50f (patch) | |
tree | f818c7bf7e2e6aa25c04b1460cc07f93860ffd12 /source/blender/python/api2_2x/Scene.c | |
parent | 1e5f4144b9c3ea62c98b527365a6201e97bfe193 (diff) |
PyAPI: create scene sequence data if its not there when getting scene.sequence
Diffstat (limited to 'source/blender/python/api2_2x/Scene.c')
-rw-r--r-- | source/blender/python/api2_2x/Scene.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/python/api2_2x/Scene.c b/source/blender/python/api2_2x/Scene.c index ebf50d7dfde..c5bd7ef9056 100644 --- a/source/blender/python/api2_2x/Scene.c +++ b/source/blender/python/api2_2x/Scene.c @@ -1093,10 +1093,7 @@ static PyObject *Scene_getRadiosityContext( BPy_Scene * self ) static PyObject *Scene_getSequence( BPy_Scene * self ) { SCENE_DEL_CHECK_PY(self); - if (self->scene->ed) /* we should create this if its not there :/ */ - return SceneSeq_CreatePyObject( self->scene, NULL ); - else - Py_RETURN_NONE; + return SceneSeq_CreatePyObject( self->scene, NULL ); } /* scene.addScriptLink */ |