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
+6 -4
View File
@@ -32,7 +32,8 @@
#include "node/output.h"
NodeParam::NodeParam(const QString &id) :
time_(-1),
in_(-1),
out_(-1),
value_caching_(true),
id_(id)
{
@@ -292,12 +293,13 @@ void NodeParam::ClearCachedValue()
{
// Since get_value() will (read: should) never receive a negative number, this will effectively invalidate any value
// currently cached
time_ = -1;
in_ = -1;
out_ = -1;
}
const rational &NodeParam::LastRequestedTime()
const rational &NodeParam::LastRequestedIn()
{
return time_;
return in_;
}
bool NodeParam::ValueCachingEnabled()