fleshed out node edges
This commit is contained in:
+12
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user