Greatly improved Nodes API

This commit is contained in:
WerWolv
2021-01-31 16:11:25 +01:00
parent b330829f09
commit f259e347aa
3 changed files with 241 additions and 242 deletions

View File

@@ -95,11 +95,17 @@ namespace hex {
for (u32 i = 0; i < this->m_endNodes.size(); i++)
this->m_dataOverlays.push_back(SharedData::currentProvider->newOverlay());
u32 overlayIndex = 0;
for (auto endNode : this->m_endNodes) {
endNode->setCurrentOverlay(this->m_dataOverlays[overlayIndex]);
overlayIndex++;
}
}
u32 overlayIndex = 0;
for (auto &endNode : this->m_endNodes) {
(void)endNode->process(this->m_dataOverlays[overlayIndex]);
(void)endNode->process();
overlayIndex++;
}
}