nodes are given a time range

This commit is contained in:
itsmattkc
2019-10-22 14:58:06 +11:00
parent 9da5e7c9be
commit 5f86b9b9c7
32 changed files with 110 additions and 77 deletions
+2 -2
View File
@@ -129,7 +129,7 @@ public:
*
* It's recommended to call this directly over Value(), yet in derivatives of Node, override Value().
*/
QVariant Run(NodeOutput* output, const rational& time);
QVariant Run(NodeOutput* output, const rational &in, const rational &out);
/**
* @brief For nodes that have different dependencies at different times, this function can be used for that purpose
@@ -252,7 +252,7 @@ protected:
* corresponding output if it's connected to one. If your node doesn't directly deal with time, the default behavior
* of the NodeParam objects will handle everything related to it automatically.
*/
virtual QVariant Value(NodeOutput* output, const rational& time) = 0;
virtual QVariant Value(NodeOutput* output, const rational &in, const rational &out) = 0;
/**
* @brief Retrieve the last timecode Process() was called with