Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-03-04 00:43:31 +0300
committerCampbell Barton <ideasman42@gmail.com>2008-03-04 00:43:31 +0300
commitc7d0a2a92a0029573130896ae93171cfb055c50f (patch)
treef818c7bf7e2e6aa25c04b1460cc07f93860ffd12 /source/blender/python/api2_2x/sceneSequence.c
parent1e5f4144b9c3ea62c98b527365a6201e97bfe193 (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.c6
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 );