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
+9
View File
@@ -119,4 +119,13 @@ void ClipBlock::Retranslate()
texture_input_->set_name(tr("Buffer"));
}
void ClipBlock::Hash(QCryptographicHash &hash, const rational &time) const
{
if (texture_input_->IsConnected()) {
rational t = InputTimeAdjustment(texture_input_, TimeRange(time, time)).in();
texture_input_->get_connected_node()->Hash(hash, t);
}
}
OLIVE_NAMESPACE_EXIT