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/sceneSequence.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/sceneSequence.c')
-rw-r--r-- | source/blender/python/api2_2x/sceneSequence.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/sceneSequence.c b/source/blender/python/api2_2x/sceneSequence.c index 86e36655c28..6bcf074068d 100644 --- a/source/blender/python/api2_2x/sceneSequence.c +++ b/source/blender/python/api2_2x/sceneSequence.c @@ -1099,6 +1099,12 @@ PyObject *SceneSeq_CreatePyObject( struct Scene * scn, struct Sequence * iter) if( !scn ) Py_RETURN_NONE; + if ( !scn->ed ) { + Editing *ed; + ed= scn->ed= MEM_callocN( sizeof(Editing), "addseq"); + ed->seqbasep= &ed->seqbase; + } + pysceseq = ( BPy_SceneSeq * ) PyObject_NEW( BPy_SceneSeq, &SceneSeq_Type ); |