Browse Source

Merge pull request #35979 from akien-mga/fix-graphnode-mouse-filter-35978

GraphEdit: Fix regression with GraphNode mouse filter
Rémi Verschelde 5 năm trước cách đây
mục cha
commit
00f46452b0
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      scene/gui/graph_edit.cpp

+ 1 - 0
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);
 	}
 }