Fix GraphEdit port valid connections incorrectly checking sides

This commit is contained in:
Aaron Franke 2023-09-12 20:46:21 -05:00
parent 3ed4497113
commit 366e54b0a3
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ void GraphEdit::_top_layer_input(const Ref<InputEvent> &p_ev) {
int type = graph_node->get_output_port_type(j); int type = graph_node->get_output_port_type(j);
if ((type == connecting_type || if ((type == connecting_type ||
valid_connection_types.has(ConnectionType(connecting_type, type))) && valid_connection_types.has(ConnectionType(type, connecting_type))) &&
is_in_output_hotzone(graph_node, j, mpos, port_size)) { is_in_output_hotzone(graph_node, j, mpos, port_size)) {
if (!is_node_hover_valid(graph_node->get_name(), j, connecting_from, connecting_index)) { if (!is_node_hover_valid(graph_node->get_name(), j, connecting_from, connecting_index)) {
continue; continue;