Added comments node

This commit is contained in:
WerWolv
2021-02-04 12:46:38 +01:00
parent 5eb289f1fe
commit ac100936c7
2 changed files with 26 additions and 4 deletions

View File

@@ -123,7 +123,6 @@ namespace hex {
printf("Node implementation bug! %s\n", e.what());
}
}
void ViewDataProcessor::drawContent() {
@@ -185,12 +184,16 @@ namespace hex {
this->m_nodes.push_back(node);
bool hasOutput = false;
bool hasInput = false;
for (auto &attr : node->getAttributes()) {
if (attr.getIOType() == dp::Attribute::IOType::Out)
hasOutput = true;
if (attr.getIOType() == dp::Attribute::IOType::In)
hasInput = true;
}
if (!hasOutput)
if (hasInput && !hasOutput)
this->m_endNodes.push_back(node);
imnodes::SetNodeScreenSpacePos(node->getID(), this->m_rightClickedCoords);