update timeline after delete function

This commit is contained in:
itsmattkc
2019-04-06 00:22:36 +11:00
parent 0247e7b992
commit eb08a794bc
3 changed files with 11 additions and 5 deletions
+6 -3
View File
@@ -206,9 +206,12 @@ void FocusFilter::delete_function() {
panel_graph_editor->delete_selected_keys();
} else {
Sequence* top_sequence = Timeline::GetTopSequence().get();
ComboAction* ca = new ComboAction();
top_sequence->DeleteAreas(ca, top_sequence->Selections(), true);
olive::undo_stack.push(ca);
if (top_sequence != nullptr) {
ComboAction* ca = new ComboAction();
top_sequence->DeleteAreas(ca, top_sequence->Selections(), true);
olive::undo_stack.push(ca);
Timeline::GetTopTimeline()->repaint_timeline();
}
}
}