fixed regression from switching folder from outputs to inputs

This commit is contained in:
itsmattkc
2021-03-14 21:51:47 +11:00
parent 2a9513e56a
commit fd6319b837
6 changed files with 22 additions and 19 deletions
+16 -13
View File
@@ -88,19 +88,6 @@ public:
return true;
}
/**
* @brief Returns a list of nodes that are of a certain type that this node outputs to
*/
template <typename T>
QVector<T*> ListOutputsOfType(bool recursive = true) const
{
QVector<T *> list;
ListOutputsOfTypeInternal(this, list, recursive);
return list;
}
int index_of_child(Node* item) const
{
return item_children_.indexOf(item);
@@ -108,6 +95,22 @@ public:
int index_of_child_in_array(Node* item) const;
template <typename T>
QVector<T*> ListChildrenOfType() const
{
QVector<T*> list;
foreach (Node* node, item_children_) {
T* cast_test = dynamic_cast<T*>(node);
if (cast_test) {
list.append(cast_test);
}
}
return list;
}
static const QString kChildInput;
signals:
+1 -1
View File
@@ -283,7 +283,7 @@ void Project::ColorManagerValueChanged(const NodeInput &input, const TimeRange &
{
Q_UNUSED(range)
QVector<Footage*> footage = root()->ListOutputsOfType<Footage>();
QVector<Footage*> footage = root()->ListChildrenOfType<Footage>();
foreach (Footage* item, footage) {
item->InvalidateAll(QString());