diff options
author | Nathan Franke <me@nathan.sh> | 2022-07-23 15:29:50 -0500 |
---|---|---|
committer | Nathan Franke <me@nathan.sh> | 2022-07-23 15:29:50 -0500 |
commit | 905c43119133ab244d81c06e3e2d14d32dea1e91 (patch) | |
tree | e068f642f58ef18edd7750f9d7635754ef79f664 | |
parent | 667cef39b4e9f98ed545d95de442319c447f2164 (diff) |
dependency editor: set current directory to closest existing directory
-rw-r--r-- | editor/dependency_editor.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/dependency_editor.cpp b/editor/dependency_editor.cpp index aa03b7e252..4f89e1b2d1 100644 --- a/editor/dependency_editor.cpp +++ b/editor/dependency_editor.cpp @@ -58,6 +58,9 @@ void DependencyEditor::_load_pressed(Object *p_item, int p_cell, int p_button, M search->set_title(TTR("Search Replacement For:") + " " + replacing.get_file()); + // Set directory to closest existing directory. + search->set_current_dir(replacing.get_base_dir()); + search->clear_filters(); List<String> ext; ResourceLoader::get_recognized_extensions_for_type(ti->get_metadata(0), &ext); |