From ed1fa9bedf582dfbae66013a7257b6b8b7c4687b Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Fri, 29 Mar 2024 13:44:49 -0300 Subject: [PATCH] Fix debugger tree error on editor start --- editor/debugger/editor_debugger_tree.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/debugger/editor_debugger_tree.cpp b/editor/debugger/editor_debugger_tree.cpp index 17a23982a795..de2e51ee8105 100644 --- a/editor/debugger/editor_debugger_tree.cpp +++ b/editor/debugger/editor_debugger_tree.cpp @@ -41,7 +41,6 @@ EditorDebuggerTree::EditorDebuggerTree() { set_v_size_flags(SIZE_EXPAND_FILL); set_allow_rmb_select(true); - set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED); // Popup item_menu = memnew(PopupMenu); @@ -57,6 +56,8 @@ EditorDebuggerTree::EditorDebuggerTree() { void EditorDebuggerTree::_notification(int p_what) { switch (p_what) { case NOTIFICATION_POSTINITIALIZE: { + set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED); + connect("cell_selected", callable_mp(this, &EditorDebuggerTree::_scene_tree_selected)); connect("item_collapsed", callable_mp(this, &EditorDebuggerTree::_scene_tree_folded)); connect("item_mouse_selected", callable_mp(this, &EditorDebuggerTree::_scene_tree_rmb_selected));