summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-09-14 15:21:59 +0200
committerYuri Sizov <yuris@humnom.net>2023-09-14 15:21:59 +0200
commit325ec7fdda852b24935fa53db7417ff5c6f143e6 (patch)
treecab20c17690cb54f9c72e45b0ac027fa7a42645b
parent1437b3a226f59777e77e69922ef85ca84e914e5b (diff)
parent366e54b0a3fa488238bdd3eb7bcead42e3e08ed1 (diff)
downloadredot-engine-325ec7fdda852b24935fa53db7417ff5c6f143e6.tar.gz
Merge pull request #81600 from aaronfranke/fix-graph-edit-valid-port-conn-type
Fix GraphEdit port valid connections incorrectly checking sides
-rw-r--r--scene/gui/graph_edit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp
index 80c115cd4d..6b5e3486ac 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -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;