added convenience undo command for removing a node and its exclusive deps

This commit is contained in:
itsmattkc
2019-12-19 01:44:18 +11:00
parent 3fb7b40b61
commit 05e10962f9
5 changed files with 22 additions and 11 deletions
+1 -6
View File
@@ -445,12 +445,7 @@ void TimelineWidget::DeleteSelectedInternal(const QList<Block *> blocks, bool re
}
if (remove_from_graph) {
QList<Node*> block_and_its_exclusive_deps;
block_and_its_exclusive_deps.append(b);
block_and_its_exclusive_deps.append(b->GetExclusiveDependencies());
new NodeRemoveCommand(static_cast<NodeGraph*>(b->parent()), block_and_its_exclusive_deps, command);
new NodeRemoveWithExclusiveDeps(static_cast<NodeGraph*>(b->parent()), b, command);
}
}
}