various fixes

This commit is contained in:
itsmattkc
2019-07-16 00:00:18 -04:00
parent 44668e144c
commit d098c0de5f
10 changed files with 127 additions and 21 deletions
+5
View File
@@ -38,6 +38,11 @@ NodeParam::Type NodeInput::type()
void NodeInput::add_data_input(const NodeParam::DataType &data_type)
{
inputs_.append(data_type);
// If no name has been set, use a default name
if (name().isEmpty()) {
set_name(GetDefaultDataTypeName(data_type));
}
}
bool NodeInput::can_accept_type(const NodeParam::DataType &data_type)