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:
authorJoerg Mueller <nexyon@gmail.com>2010-03-21 18:40:36 +0300
committerJoerg Mueller <nexyon@gmail.com>2010-03-21 18:40:36 +0300
commitf61b3ac81ab6e1925c6dfc7ff45fd5dac44a0f36 (patch)
tree4b23cd2010a09beb510c834e0fc46dde1f1869e8 /source/blender/blenkernel/intern/sound.c
parent247b7249bd14f370aad991f176a1aafb5acefc45 (diff)
Fix for sequencer adding scene strips of the same scene resulting in an endless recursion.
Diffstat (limited to 'source/blender/blenkernel/intern/sound.c')
-rw-r--r--source/blender/blenkernel/intern/sound.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/sound.c b/source/blender/blenkernel/intern/sound.c
index d40d4e02dc7..7308146ef92 100644
--- a/source/blender/blenkernel/intern/sound.c
+++ b/source/blender/blenkernel/intern/sound.c
@@ -348,7 +348,9 @@ void sound_destroy_scene(struct Scene *scene)
void* sound_scene_add_scene_sound(struct Scene *scene, struct Sequence* sequence, int startframe, int endframe, int frameskip)
{
- return AUD_addSequencer(scene->sound_scene, &(sequence->scene->sound_scene), startframe / FPS, endframe / FPS, frameskip / FPS, sequence);
+ if(scene != sequence->scene)
+ return AUD_addSequencer(scene->sound_scene, &(sequence->scene->sound_scene), startframe / FPS, endframe / FPS, frameskip / FPS, sequence);
+ return NULL;
}
void* sound_add_scene_sound(struct Scene *scene, struct Sequence* sequence, int startframe, int endframe, int frameskip)