transform: hash the generated matrix
Making an exception for the transform node, we use a slightly heavier hash to save more rendering time later. Fixes #1560 Addresses some of #1360
This commit is contained in:
@@ -98,13 +98,13 @@ QVector<QString> TimeRemapNode::inputs_for_output(const QString &output) const
|
||||
return {kInputInput};
|
||||
}
|
||||
|
||||
void TimeRemapNode::Hash(const QString &output, QCryptographicHash &hash, const rational &time) const
|
||||
void TimeRemapNode::Hash(const QString &output, QCryptographicHash &hash, const rational &time, const VideoParams &video_params) const
|
||||
{
|
||||
// Don't hash anything of our own, just pass-through to the connected node at the remapped tmie
|
||||
Q_UNUSED(output)
|
||||
if (IsInputConnected(kInputInput)) {
|
||||
NodeOutput out = GetConnectedOutput(kInputInput);
|
||||
out.node()->Hash(out.output(), hash, GetRemappedTime(time));
|
||||
out.node()->Hash(out.output(), hash, GetRemappedTime(time), video_params);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ public:
|
||||
|
||||
virtual QVector<QString> inputs_for_output(const QString &output) const override;
|
||||
|
||||
virtual void Hash(const QString &output, QCryptographicHash &hash, const rational &time) const override;
|
||||
virtual void Hash(const QString &output, QCryptographicHash &hash, const rational &time, const VideoParams& video_params) const override;
|
||||
|
||||
static const QString kTimeInput;
|
||||
static const QString kInputInput;
|
||||
|
||||
Reference in New Issue
Block a user