Fix T51661: Swaping strips does not refresh sequencer
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 31 May 2017 12:26:04 +0000 (14:26 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 31 May 2017 12:26:04 +0000 (14:26 +0200)
source/blender/editors/space_sequencer/sequencer_edit.c

index 2d6892c1091a74d4de7eda33a811b946b53b3489..3ae4a233353e37c59e0f54e9999ad73f0ec03565 100644 (file)
@@ -3352,6 +3352,9 @@ static int sequencer_swap_data_exec(bContext *C, wmOperator *op)
        if (seq_act->sound) BKE_sound_add_scene_sound_defaults(scene, seq_act);
        if (seq_other->sound) BKE_sound_add_scene_sound_defaults(scene, seq_other);
 
+       BKE_sequence_invalidate_cache(scene, seq_act);
+       BKE_sequence_invalidate_cache(scene, seq_other);
+
        WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER, scene);
 
        return OPERATOR_FINISHED;