more sequence -> sequencer rename, also made sequencer swap strip update effects...
[blender-staging.git] / source / blender / editors / space_sequencer / sequencer_edit.c
index 9685a2e1e20c29b3b9f2bc19b04824849476a806..c421c7fbb8568cbfce19b2aa8f0d8fc7b91d6f5d 100644 (file)
@@ -2557,7 +2557,7 @@ static int sequencer_swap_internal_exec(bContext *C, int side)
        Scene *scene= CTX_data_scene(C);
        Editing *ed= seq_give_editing(scene, FALSE);
        Sequence *active_seq = active_seq_get(scene);
-       Sequence *seq;
+       Sequence *seq, *iseq;
 
        if(ed==NULL) return OPERATOR_CANCELLED;
        if(active_seq==NULL) return OPERATOR_CANCELLED;
@@ -2586,6 +2586,13 @@ static int sequencer_swap_internal_exec(bContext *C, int side)
                                break;
                }
 
+               // XXX - should be a generic function
+               for(iseq= scene->ed->seqbasep->first; iseq; iseq= iseq->next) {
+                       //if((iseq->type & SEQ_EFFECT) && ELEM6(iseq, seq->seq1, seq->seq2, seq->seq3, active_seq->seq1, active_seq->seq2, active_seq->seq3))
+                       if(iseq->type & SEQ_EFFECT)
+                                       calc_sequence(iseq);
+               }
+
                WM_event_add_notifier(C, NC_SCENE|ND_SEQUENCER, scene);
 
                return OPERATOR_FINISHED;