reduced the output of some nodes

Some nodes don't need to provide all their inputs merged as outputs.
This commit is contained in:
itsmattkc
2019-12-10 00:37:06 +11:00
parent 2fb4047e6f
commit f46b1245c4
7 changed files with 29 additions and 5 deletions
+13
View File
@@ -87,3 +87,16 @@ TimeRange ClipBlock::InputTimeAdjustment(NodeInput *input, const TimeRange &inpu
return Block::InputTimeAdjustment(input, input_time);
}
NodeValueTable ClipBlock::Value(const NodeValueDatabase &value) const
{
// We discard most values here except for the buffer we received
NodeValueTable table;
NodeValue data = value[texture_input()].GetWithMeta(NodeParam::kBuffer);
if (data.type() != NodeParam::kNone) {
table.Push(data);
}
return table;
}