start implementing dynamic nodes
This commit is contained in:
@@ -22,11 +22,9 @@ LogicChainNode::LogicChainNode()
|
||||
|
||||
void LogicChainNode::compute()
|
||||
{
|
||||
int count = 0;
|
||||
for (auto& port : _out_ports)
|
||||
{
|
||||
_out_ports[count].out_value = std::make_shared<LogicData>(true);
|
||||
count++;
|
||||
port.out_value = std::make_shared<LogicData>(true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,9 +42,9 @@ using noggit::Red::PresetEditor::Nodes::LogicChainNode;
|
||||
using noggit::Red::PresetEditor::Nodes::BaseNode;
|
||||
using noggit::Red::PresetEditor::Nodes::NodeScene;
|
||||
|
||||
#define REGISTER_TYPE_CONVERTER(T_FROM, T_TO) \
|
||||
#define REGISTER_TYPE_CONVERTER(T_FROM, T_TO) \
|
||||
registerTypeConverter(std::make_pair(T_FROM##Data().type(), \
|
||||
T_TO##Data().type()), \
|
||||
T_TO##Data().type()), \
|
||||
TypeConverter{T_FROM##To##T_TO##TypeConverter()})
|
||||
|
||||
static std::shared_ptr<DataModelRegistry>
|
||||
|
||||
Reference in New Issue
Block a user