timeline: auto-unlink blocks when they're deleted

This commit is contained in:
itsmattkc
2020-03-15 13:15:36 +11:00
parent 78baf7661f
commit b57b091ca4
5 changed files with 100 additions and 4 deletions
@@ -380,6 +380,8 @@ void TimelineWidget::DeleteSelectedInternal(const QList<Block *> &blocks,
}
if (remove_from_graph) {
new BlockUnlinkAllCommand(b, command);
new NodeRemoveWithExclusiveDeps(static_cast<NodeGraph*>(b->parent()), b, command);
}
}