adjusted invalidatecache function

This commit is contained in:
itsmattkc
2019-09-02 20:11:42 +10:00
parent e87ed9dd3d
commit 3a9af58344
11 changed files with 68 additions and 30 deletions
+3 -3
View File
@@ -65,7 +65,7 @@ void Node::RemoveParameter(NodeParam *param)
delete param;
}
void Node::InvalidateCache(NodeInput* from, const rational &start_range, const rational &end_range)
void Node::InvalidateCache(const rational &start_range, const rational &end_range, NodeInput *from)
{
Q_UNUSED(from)
@@ -91,7 +91,7 @@ void Node::InvalidateCache(NodeInput* from, const rational &start_range, const r
edge->output()->ClearCachedValue();
// Send clear cache signal to the Node
connected_node->InvalidateCache(connected_input, start_range, end_range);
connected_node->InvalidateCache(start_range, end_range, connected_input);
}
}
}
@@ -326,5 +326,5 @@ bool Node::HasParamWithID(const QString &id)
void Node::InputChanged(rational start, rational end)
{
InvalidateCache(static_cast<NodeInput*>(sender()), start, end);
InvalidateCache(start, end, static_cast<NodeInput*>(sender()));
}