timeremap: fixed issue where input wasn't re-pushed

This commit is contained in:
itsmattkc
2021-10-02 13:12:35 -07:00
parent 3a512c1314
commit ec4a3badc6
2 changed files with 8 additions and 3 deletions
+6 -3
View File
@@ -67,9 +67,7 @@ QString TimeRemapNode::Description() const
TimeRange TimeRemapNode::InputTimeAdjustment(const QString &input, int element, const TimeRange &input_time) const
{
if (input == kInputInput) {
rational target_time = GetRemappedTime(input_time.in());
return TimeRange(target_time, target_time + input_time.length());
return TimeRange(GetRemappedTime(input_time.in()), GetRemappedTime(input_time.out()));
} else {
return super::InputTimeAdjustment(input, element, input_time);
}
@@ -93,6 +91,11 @@ void TimeRemapNode::Retranslate()
SetInputName(kInputInput, QStringLiteral("Input"));
}
void TimeRemapNode::Value(const NodeValueRow &value, const NodeGlobals &globals, NodeValueTable *table) const
{
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
+2
View File
@@ -45,6 +45,8 @@ public:
virtual void Retranslate() override;
virtual void Value(const NodeValueRow& value, const NodeGlobals &globals, NodeValueTable *table) const override;
static const QString kTimeInput;
static const QString kInputInput;