fast drag mode honours follow_edits labels/plugins/keyframes
authorGood Guy <[email protected]>
Sat, 5 Jan 2019 22:33:57 +0000 (15:33 -0700)
committerGood Guy <[email protected]>
Sat, 5 Jan 2019 22:33:57 +0000 (15:33 -0700)
cinelerra-5.1/cinelerra/mwindowedit.C

index 99c666f11106bade5029f7bf508b4ff1f3e96881..7a6cbeb4eb2aa981bd7e197b8b2388bff4e5db48 100644 (file)
@@ -1135,13 +1135,16 @@ void MWindow::move_edits(ArrayList<Edit*> *edits,
 {
        undo->update_undo_before();
 
-       edl->tracks->move_edits(edits,
-               track,
-               position,
+       EDL *clip = selected_edits_to_clip(1, 0, 0,
                edl->session->labels_follow_edits,
-               edl->session->plugins_follow_edits,
                edl->session->autos_follow_edits,
-               behaviour);
+               edl->session->plugins_follow_edits);
+       edl->delete_edits(edits, 0);
+       paste_edits(clip, track, position, behaviour, 1,
+               edl->session->labels_follow_edits,
+               edl->session->autos_follow_edits,
+               edl->session->plugins_follow_edits);
+       edl->tracks->clear_selected_edits();
 
        save_backup();
        undo->update_undo_after(_("move edit"), LOAD_ALL);