Bugfix: In sequencer, duplicating effects crashed due to calling a NULL
authorTon Roosendaal <ton@blender.org>
Wed, 15 Mar 2006 18:16:25 +0000 (18:16 +0000)
committerTon Roosendaal <ton@blender.org>
Wed, 15 Mar 2006 18:16:25 +0000 (18:16 +0000)
callback.

source/blender/src/editseq.c

index a1cbcf296d7b806edadb28a57b383938f368e0c3..60a2b18897c5a5d9b3e1ac9c904cf1e27594d5bb 100644 (file)
@@ -1568,7 +1568,8 @@ static void recurs_dupli_seq(ListBase *old, ListBase *new)
                                        if (seq->type & SEQ_EFFECT) {
                                                struct SeqEffectHandle sh;
                                                sh = get_sequence_effect(seq);
-                                               sh.copy(seq, seqn);
+                                               if(sh.copy)
+                                                       sh.copy(seq, seqn);
                                        }
 
                                        seqn->strip= MEM_dupallocN(seq->strip);