Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/sequencer.c
| Show First 20 Lines • Show All 5,661 Lines • ▼ Show 20 Lines | static Sequence *seq_dupli(const Scene *scene_src, | ||||
| } | } | ||||
| else if (seq->type == SEQ_TYPE_IMAGE) { | else if (seq->type == SEQ_TYPE_IMAGE) { | ||||
| seqn->strip->stripdata = MEM_dupallocN(seq->strip->stripdata); | seqn->strip->stripdata = MEM_dupallocN(seq->strip->stripdata); | ||||
| } | } | ||||
| else if (seq->type & SEQ_TYPE_EFFECT) { | else if (seq->type & SEQ_TYPE_EFFECT) { | ||||
| struct SeqEffectHandle sh; | struct SeqEffectHandle sh; | ||||
| sh = BKE_sequence_get_effect(seq); | sh = BKE_sequence_get_effect(seq); | ||||
| if (sh.copy) { | if (sh.copy) { | ||||
| sh.copy(seq, seqn, flag); | sh.copy(seqn, seq, flag); | ||||
| } | } | ||||
| seqn->strip->stripdata = NULL; | seqn->strip->stripdata = NULL; | ||||
| } | } | ||||
| else { | else { | ||||
| /* sequence type not handled in duplicate! Expect a crash now... */ | /* sequence type not handled in duplicate! Expect a crash now... */ | ||||
| BLI_assert(0); | BLI_assert(0); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 306 Lines • Show Last 20 Lines | |||||