remove hashes from nodes

This commit is contained in:
itsmattkc
2022-05-09 18:30:36 -07:00
parent 0538c01f45
commit 08f3cb3cc3
27 changed files with 0 additions and 349 deletions
-13
View File
@@ -34,7 +34,6 @@ TimeRemapNode::TimeRemapNode()
AddInput(kTimeInput, NodeValue::kRational, QVariant::fromValue(rational(0)), InputFlags(kInputFlagNotConnectable));
SetInputProperty(kTimeInput, QStringLiteral("view"), RationalSlider::kTime);
SetInputProperty(kTimeInput, QStringLiteral("viewlock"), true);
IgnoreHashingFrom(kTimeInput);
AddInput(kInputInput, NodeValue::kNone, InputFlags(kInputFlagNotKeyframable));
}
@@ -93,18 +92,6 @@ void TimeRemapNode::Value(const NodeValueRow &value, const NodeGlobals &globals,
table->Push(value[kInputInput]);
}
void TimeRemapNode::Hash(QCryptographicHash &hash, const NodeGlobals &globals, const VideoParams &video_params) const
{
// Don't hash anything of our own, just pass-through to the connected node at the remapped tmie
if (IsInputConnected(kInputInput)) {
Node *out = GetConnectedOutput(kInputInput);
NodeGlobals new_globals = globals;
new_globals.set_time(TimeRange(GetRemappedTime(globals.time().in()), GetRemappedTime(globals.time().out())));
Node::Hash(out, GetValueHintForInput(kInputInput), hash, new_globals, video_params);
}
}
rational TimeRemapNode::GetRemappedTime(const rational &input) const
{
return GetValueAtTime(kTimeInput, input).value<rational>();