nodes: optimize blocks so they don't unnecessarily change the hash

This commit is contained in:
itsmattkc
2020-05-06 16:14:23 +10:00
parent fb625cb76e
commit d49c6a059c
6 changed files with 28 additions and 4 deletions
+2 -2
View File
@@ -420,11 +420,11 @@ NodeInputArray *TrackOutput::block_input() const
void TrackOutput::Hash(QCryptographicHash &hash, const rational &time) const
{
// Resolve block list
Block* b = BlockAtTime(time);
// Defer to block at this time, don't add any of our own information to the hash
if (b) {
return b->Hash(hash, time);
b->Hash(hash, time);
}
}