X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fcinelerra%2Fmwindowedit.C;h=168b7c9320245bde8d47445ac7ea860803e5712a;hb=3f6a262cfe390b3f8b275297d64565a5b6272969;hp=1604256d83de3f57d0a92b90e091d55369df56e2;hpb=d348518c261d543e12282d516768d4f446434a42;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/cinelerra/mwindowedit.C b/cinelerra-5.1/cinelerra/mwindowedit.C index 1604256d..168b7c93 100644 --- a/cinelerra-5.1/cinelerra/mwindowedit.C +++ b/cinelerra-5.1/cinelerra/mwindowedit.C @@ -520,7 +520,26 @@ void MWindow::cut() { double start = edl->local_session->get_selectionstart(); double end = edl->local_session->get_selectionend(); - cut(start, end); + if( EQUIV(start,end) ) + blade(start); + else + cut(start, end); +} + +void MWindow::blade(double position) +{ + undo->update_undo_before(); + edl->blade(position); + edl->optimize(); + save_backup(); + undo->update_undo_after(_("blade"), LOAD_EDITS | LOAD_TIMEBAR); + restart_brender(); + update_plugin_guis(); + gui->update(1, 2, 1, 1, 1, 1, 0); + cwindow->update(1, 0, 0, 0, 1); + awindow->gui->async_update_assets(); + cwindow->playback_engine->que-> + send_command(CURRENT_FRAME, CHANGE_EDL, edl, 1); } void MWindow::cut(double start, double end, double new_position)