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
+11
View File
@@ -67,6 +67,17 @@ QVariant NodeValueTable::Get(const NodeParam::DataType &type, const QString &tag
return QVariant();
}
NodeValue NodeValueTable::GetWithMeta(const NodeParam::DataType &type, const QString &tag) const
{
int value_index = GetInternal(type, tag);
if (value_index >= 0) {
return values_.at(value_index);
}
return NodeValue(NodeParam::kNone, 0);
}
QVariant NodeValueTable::Take(const NodeParam::DataType &type, const QString &tag)
{
int value_index = GetInternal(type, tag);