Skip to content

Commit

Permalink
Merge pull request #90022 from YeldhamDev/debug_tree_fix
Browse files Browse the repository at this point in the history
Fix debugger tree error on editor start
  • Loading branch information
akien-mga committed Apr 8, 2024
2 parents 429bf02 + ed1fa9b commit 5c5563f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/debugger/editor_debugger_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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));
Expand Down

0 comments on commit 5c5563f

Please sign in to comment.