changed nodeparam naming behavior

This commit is contained in:
itsmattkc
2019-09-08 12:19:00 +10:00
parent 4b2f4bcdb2
commit b428eb9984
6 changed files with 21 additions and 14 deletions
+1 -6
View File
@@ -32,7 +32,7 @@ NodeParam::Type NodeOutput::type()
return kOutput;
}
const NodeParam::DataType &NodeOutput::data_type()
NodeParam::DataType NodeOutput::data_type()
{
return data_type_;
}
@@ -40,11 +40,6 @@ const NodeParam::DataType &NodeOutput::data_type()
void NodeOutput::set_data_type(const NodeParam::DataType &type)
{
data_type_ = type;
// If no name has been set, use a default name
if (name().isEmpty()) {
set_name(GetDefaultDataTypeName(type));
}
}
QVariant NodeOutput::get_value(const rational& time)