separated setting time and processing node functions

This commit is contained in:
itsmattkc
2019-08-27 23:38:24 +10:00
parent 35db54075d
commit b9ce02a0ec
29 changed files with 146 additions and 109 deletions
+2 -4
View File
@@ -70,7 +70,7 @@ void Block::set_length(const rational &length)
Block *Block::previous()
{
return ValueToPtr<Block>(previous_input_->get_value(0));
return ValueToPtr<Block>(previous_input_->get_value());
}
Block *Block::next()
@@ -83,10 +83,8 @@ NodeInput *Block::previous_input()
return previous_input_;
}
void Block::Process(const rational &time)
void Block::Process()
{
Q_UNUSED(time)
// Simply set both output values as a pointer to this object
block_output_->set_value(PtrToValue(this));
}