summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2023-09-12 20:46:21 -0500
committerAaron Franke <arnfranke@yahoo.com>2023-09-12 20:46:43 -0500
commit366e54b0a3fa488238bdd3eb7bcead42e3e08ed1 (patch)
tree1326d7eb3b12b58f2718af90527d835faa98104c
parent3ed4497113fa10611b90290ce22a751fb9d26e2e (diff)
downloadredot-engine-366e54b0a3fa488238bdd3eb7bcead42e3e08ed1.tar.gz
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 be0ae45e7e..5371039ff6 100644
--- a/scene/gui/graph_edit.cpp
+++ b/scene/gui/graph_edit.cpp
@@ -774,7 +774,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;