fleshed out node edges

This commit is contained in:
itsmattkc
2019-07-10 03:22:53 -05:00
parent 60b04f98b4
commit 08a75b58dd
8 changed files with 168 additions and 3 deletions
+12 -1
View File
@@ -21,7 +21,8 @@
#include "input.h"
NodeInput::NodeInput(Node* parent) :
NodeParam(parent)
NodeParam(parent),
can_accept_multiple_inputs_(false)
{
}
@@ -39,3 +40,13 @@ bool NodeInput::can_accept_type(const NodeParam::DataType &data_type)
{
return AreDataTypesCompatible(data_type, inputs_);
}
bool NodeInput::can_accept_multiple_inputs()
{
return can_accept_multiple_inputs_;
}
void NodeInput::set_can_accept_multiple_inputs(bool b)
{
can_accept_multiple_inputs_ = b;
}