This commit is contained in:
Thomas Wilshaw
2020-09-29 12:03:01 +01:00
parent 8e6b42a160
commit 791857fba1
4 changed files with 6 additions and 2 deletions
-1
View File
@@ -26,7 +26,6 @@
#include "core.h"
#include "node/input/media/media.h"
#include "widget/timelinewidget/timelinewidget.h"
OLIVE_NAMESPACE_ENTER
+3
View File
@@ -195,6 +195,9 @@ public:
};
/**
* @brief An undo command for offlining footage when it is deleted from the project explorer
*/
class OfflineFootageCommand : public UndoCommand {
public:
OfflineFootageCommand(ProjectViewModel* model, ItemPtr item, QMap<Node*, StreamPtr> nodes, QUndoCommand* parent = nullptr);
@@ -588,7 +588,7 @@ QList<Block*> ProjectExplorer::GetFootageBlocks(QList<Node*> nodes)
// For each Block see if it is linked to one of the Footage nodes add it to the delete list
if (node->IsBlock()) {
foreach (Node* input, nodes) {
if (node->GetExclusiveDependencies().contains(input)) {
if (node->GetDependencies().contains(input)) {
blocks.append(static_cast<Block*>(node));
}
}
@@ -124,6 +124,8 @@ private:
/**
* @brief Get all the blocks associated with the given footage nodes
*
* Currently quite brute force.
*/
QList<Block*> GetFootageBlocks(QList<Node*> nodes);