fixed various caching issues

This commit is contained in:
itsmattkc
2019-09-02 22:58:44 +10:00
parent 3a9af58344
commit 12bc5839a6
19 changed files with 196 additions and 61 deletions
+5 -10
View File
@@ -27,6 +27,7 @@ Block::Block() :
{
previous_input_ = new NodeInput("prev_block");
previous_input_->add_data_input(NodeParam::kBlock);
previous_input_->set_dependent(false);
AddParameter(previous_input_);
block_output_ = new NodeOutput("block_out");
@@ -63,8 +64,12 @@ const rational& Block::length()
void Block::set_length(const rational &length)
{
Lock();
length_ = length;
Unlock();
RefreshFollowing();
}
@@ -181,16 +186,6 @@ void Block::set_media_in(const rational &media_in)
}
}
QList<NodeDependency> Block::RunDependencies(NodeOutput* param, const rational &time)
{
// Base Blocks have no direct dependencies
Q_UNUSED(param)
Q_UNUSED(time)
return QList<NodeDependency>();
}
rational Block::SequenceToMediaTime(const rational &sequence_time)
{
// These constants are not considered "values" per se, so we don't modify them