瀏覽代碼

Merge pull request #85009 from Yagich/graphedit-connection-layer-internal

Add GraphEdit connection layer child as internal
Rémi Verschelde 1 年之前
父節點
當前提交
83493023df
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/gui/graph_edit.cpp

+ 1 - 1
scene/gui/graph_edit.cpp

@@ -2015,7 +2015,7 @@ GraphEdit::GraphEdit() {
 	top_layer->connect("focus_exited", callable_mp(panner.ptr(), &ViewPanner::release_pan_key));
 	top_layer->connect("focus_exited", callable_mp(panner.ptr(), &ViewPanner::release_pan_key));
 
 
 	connections_layer = memnew(Control);
 	connections_layer = memnew(Control);
-	add_child(connections_layer, false);
+	add_child(connections_layer, false, INTERNAL_MODE_FRONT);
 	connections_layer->connect("draw", callable_mp(this, &GraphEdit::_connections_layer_draw));
 	connections_layer->connect("draw", callable_mp(this, &GraphEdit::_connections_layer_draw));
 	connections_layer->set_name("_connection_layer");
 	connections_layer->set_name("_connection_layer");
 	connections_layer->set_disable_visibility_clip(true); // Necessary, so it can draw freely and be offset.
 	connections_layer->set_disable_visibility_clip(true); // Necessary, so it can draw freely and be offset.