fixed node removals

This commit is contained in:
itsmattkc
2021-01-22 19:23:20 +11:00
parent b114bf98c9
commit d9019f9cb1
8 changed files with 138 additions and 70 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ void NodeConnectable::ConnectEdge(Node *output, NodeInput *input, int element)
// Connection exists
if (std::find(output->output_connections_.begin(), output->output_connections_.end(), conn_to_in) != output->output_connections_.end()) {
qDebug() << "Ignored connect that already exists";
qDebug() << "Ignored connect that already exists:" << output << input->parent() << input->id() << element;
return;
}
@@ -53,7 +53,7 @@ void NodeConnectable::DisconnectEdge(Node *output, NodeInput *input, int element
// Connection exists
if (std::find(output->output_connections_.begin(), output->output_connections_.end(), conn_to_in) == output->output_connections_.end()) {
qDebug() << "Ignored disconnect that doesn't exist";
qDebug() << "Ignored disconnect that doesn't exist:" << output << input->parent() << input->id() << element;
return;
}