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:
authorKonrad Kleine <konrad.wilhelm.kleine@gmail.com>2010-07-16 18:00:57 +0400
committerKonrad Kleine <konrad.wilhelm.kleine@gmail.com>2010-07-16 18:00:57 +0400
commitddfdf8e1b2d3826e8dac197e81f4bad2b7c6abdd (patch)
tree9a11c3b937f27b084bd2ab542be9b57dc778f510 /source/blender/editors/space_sequencer
parentdd705a25ceb0be2044f1f11055140811be892b03 (diff)
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
Diffstat (limited to 'source/blender/editors/space_sequencer')
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c2
1 files changed, 1 insertions, 1 deletions
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;
}