nodevalue: return a null qvariant instead of 0 if there is no matching value in the table

This commit is contained in:
itsmattkc
2020-04-04 19:04:44 +11:00
parent c82ca3c716
commit c4b11c7bd1
+1 -1
View File
@@ -71,7 +71,7 @@ NodeValue NodeValueTable::GetWithMeta(const NodeParam::DataType &type, const QSt
return values_.at(value_index);
}
return NodeValue(NodeParam::kNone, 0);
return NodeValue(NodeParam::kNone, QVariant());
}
QVariant NodeValueTable::Take(const NodeParam::DataType &type, const QString &tag)