nodes: moved hashing to nodes so they can override behavior if they wish

This commit is contained in:
itsmattkc
2020-04-30 01:56:08 +10:00
parent ba94aa0b22
commit aecfa842c3
13 changed files with 128 additions and 115 deletions
+10
View File
@@ -418,6 +418,16 @@ NodeInputArray *TrackOutput::block_input() const
return block_input_;
}
void TrackOutput::Hash(QCryptographicHash &hash, const rational &time) const
{
// Resolve block list
Block* b = BlockAtTime(time);
if (b) {
return b->Hash(hash, time);
}
}
void TrackOutput::SetTrackName(const QString &name)
{
track_name_ = name;