diff --git a/editor/script_editor_debugger.cpp b/editor/script_editor_debugger.cpp index ca0fec748a8..00a466a9a79 100644 --- a/editor/script_editor_debugger.cpp +++ b/editor/script_editor_debugger.cpp @@ -2263,6 +2263,10 @@ void ScriptEditorDebugger::_item_menu_id_pressed(int p_option) { file_dialog->add_filter("*." + extensions[i] + " ; " + extensions[i].to_upper()); } + TreeItem *ti = inspect_scene_tree->get_selected(); + String filename = ti->get_text(0) + "." + extensions.front()->get().to_lower(); + + file_dialog->set_current_path(filename); file_dialog->popup_centered_ratio(); } break; case ITEM_MENU_COPY_NODE_PATH: {