From e18c65634fdbcd69081cdd7a9fccc221a7c20e53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 7 Feb 2020 10:09:39 +0100 Subject: [PATCH] GraphEdit: Fix regression with GraphNode mouse filter PR #35068 made Container (which GraphNode inherits) default to MOUSE_FILTER_PASS, so I removed the manual override, but it turns out that GraphNode's constructor still overrides it to MOUSE_FILTER_STOP. Another fix could be to remove the STOP in the constructor, but I don't know if it's there for a specific reason (e.g. to have GraphNodes STOP by default, but PASS in a specific case). Fixes #35978. --- scene/gui/graph_edit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/graph_edit.cpp b/scene/gui/graph_edit.cpp index 6a6fe43876d..c09b2414b2a 100644 --- a/scene/gui/graph_edit.cpp +++ b/scene/gui/graph_edit.cpp @@ -261,6 +261,7 @@ void GraphEdit::add_child_notify(Node *p_child) { gn->connect("raise_request", this, "_graph_node_raised", varray(gn)); gn->connect("item_rect_changed", connections_layer, "update"); _graph_node_moved(gn); + gn->set_mouse_filter(MOUSE_FILTER_PASS); } }