From ddfdf8e1b2d3826e8dac197e81f4bad2b7c6abdd Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Fri, 16 Jul 2010 14:00:57 +0000 Subject: Fix for [#22668] Adding sequencer color strip fails when sound strip selected. Hi, I've written a patch to fix this issue. Since the Effect Strip "Color" doesn't need any input sequences, there is no need to output a warning when adding this effect while other sequences are selected. My fix let's all Effect Strips that don't need input sequences pass the warning "Can't apply effects to audio sequence strips". I think this is fair. -Konrad --- source/blender/editors/space_sequencer/sequencer_edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors/space_sequencer') diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index d3d2fd7e220..004aacb921f 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -621,7 +621,7 @@ int seq_effect_find_selected(Scene *scene, Sequence *activeseq, int type, Sequen for(seq=ed->seqbasep->first; seq; seq=seq->next) { if(seq->flag & SELECT) { - if (seq->type == SEQ_SOUND) { + if (seq->type == SEQ_SOUND && get_sequence_effect_num_inputs(type) != 0) { *error_str= "Can't apply effects to audio sequence strips"; return 0; } -- cgit v1.2.3