timeline: remove transitions when removing clips

Fixes #1224
This commit is contained in:
itsmattkc
2021-04-26 20:29:21 +10:00
parent 67f48bc37c
commit e2a590da26
6 changed files with 564 additions and 245 deletions
+1 -3
View File
@@ -479,9 +479,7 @@ void TimelineWidget::DeleteSelected(bool ripple)
// For transitions, remove them but extend their attached blocks to fill their place
foreach (TransitionBlock* transition, transitions_to_delete) {
command->add_child(new TransitionRemoveCommand(transition));
command->add_child(new NodeRemoveWithExclusiveDependenciesAndDisconnect(transition));
command->add_child(new TransitionRemoveCommand(transition, true));
}
// Replace clips with gaps (effectively deleting them)