diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_modifier.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_modifier.c b/source/blender/editors/space_sequencer/sequencer_modifier.c index 6faf83d2a08..fad317fdd4e 100644 --- a/source/blender/editors/space_sequencer/sequencer_modifier.c +++ b/source/blender/editors/space_sequencer/sequencer_modifier.c @@ -220,22 +220,24 @@ static int strip_modifier_copy_exec(bContext *C, wmOperator *UNUSED(op)) SEQP_BEGIN(ed, seq_iter) { - if (seq_iter == seq) - continue; - - if (seq_iter->modifiers.first) { - SequenceModifierData *smd_tmp, *smd = seq_iter->modifiers.first; - - while (smd) { - smd_tmp = smd->next; - BLI_remlink(&seq_iter->modifiers, smd); - BKE_sequence_modifier_free(smd); - smd = smd_tmp; + if (seq_iter->flag & SELECT) { + if (seq_iter == seq) + continue; + + if (seq_iter->modifiers.first) { + SequenceModifierData *smd_tmp, *smd = seq_iter->modifiers.first; + + while (smd) { + smd_tmp = smd->next; + BLI_remlink(&seq_iter->modifiers, smd); + BKE_sequence_modifier_free(smd); + smd = smd_tmp; + } + BLI_listbase_clear(&seq_iter->modifiers); } - BLI_listbase_clear(&seq_iter->modifiers); - } - BKE_sequence_modifier_list_copy(seq_iter, seq); + BKE_sequence_modifier_list_copy(seq_iter, seq); + } } SEQ_END |