Skip to content

Commit

Permalink
Merge pull request godotengine#81600 from aaronfranke/fix-graph-edit-…
Browse files Browse the repository at this point in the history
…valid-port-conn-type

Fix GraphEdit port valid connections incorrectly checking sides
  • Loading branch information
YuriSizov committed Sep 14, 2023
2 parents 1437b3a + 366e54b commit 325ec7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene/gui/graph_edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ void GraphEdit::_top_layer_input(const Ref<InputEvent> &p_ev) {

int type = graph_node->get_output_port_type(j);
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)) {
if (!is_node_hover_valid(graph_node->get_name(), j, connecting_from, connecting_index)) {
continue;
Expand Down

0 comments on commit 325ec7f

Please sign in to comment.