shifted to new dependency structure

This commit is contained in:
itsmattkc
2019-08-28 01:24:50 +10:00
parent 797a4eae16
commit 5afe7d523c
27 changed files with 343 additions and 265 deletions
+9 -9
View File
@@ -23,7 +23,8 @@
#include "node/node.h"
NodeOutput::NodeOutput(const QString &id) :
NodeParam(id)
NodeParam(id),
time_(-1)
{
}
@@ -47,16 +48,15 @@ void NodeOutput::set_data_type(const NodeParam::DataType &type)
}
}
const QVariant &NodeOutput::get_value()
const QVariant &NodeOutput::get_value(const rational& time)
{
// Node::Process() should put the correct value in this output
parent()->Run();
if (time_ != time) {
// Update the value
value_ = parent()->Run(this, time);
time_ = time;
}
// The value should be have been set by this point
return value_;
}
void NodeOutput::set_value(const QVariant &value)
{
value_ = value;
}