nodeview: when removing a node, remove it from all contexts

This commit is contained in:
itsmattkc
2021-07-08 11:42:53 -07:00
parent 5dd2132037
commit dcac7f94f9
+2
View File
@@ -142,6 +142,8 @@ void NodeRemoveAndDisconnectCommand::prep()
for (const Node::OutputConnection& conn : node_->output_connections()) {
command_->add_child(new NodeEdgeRemoveCommand(conn.first, conn.second));
}
command_->add_child(new NodeRemovePositionFromAllContextsCommand(node_));
}
void NodeRenameCommand::AddNode(Node *node, const QString &new_name)