[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30412] trunk/blender/source/blender/ editors/space_sequencer/sequencer_edit.c: Fix for [#22668] Adding sequencer color strip fails when sound strip selected.

Konrad Kleine konrad at konradwilhelm.de
Fri Jul 16 16:00:57 CEST 2010


Revision: 30412
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30412
Author:   kwk
Date:     2010-07-16 16:00:57 +0200 (Fri, 16 Jul 2010)

Log Message:
-----------
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

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c

Modified: trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c
===================================================================
--- trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c	2010-07-16 13:55:22 UTC (rev 30411)
+++ trunk/blender/source/blender/editors/space_sequencer/sequencer_edit.c	2010-07-16 14:00:57 UTC (rev 30412)
@@ -621,7 +621,7 @@
 
 	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;
 			}





More information about the Bf-blender-cvs mailing list