summaryrefslogtreecommitdiff
path: root/editor/project_converter_3_to_4.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-09-27 15:52:04 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-09-27 15:52:04 +0200
commit33dbcea0398682e0ac1b02919fdfc711e9ba578e (patch)
treed7f98c5805516e17d9004d2da170f222bdbd69bf /editor/project_converter_3_to_4.cpp
parent812409cf7a635231319780505ea96585dff67d83 (diff)
parent1bf741c277aacec938a0280b7aa21cd95e866585 (diff)
Merge pull request #66491 from KoBeWi/open_for_path
Fix wrong DirAccess function in project converter
Diffstat (limited to 'editor/project_converter_3_to_4.cpp')
-rw-r--r--editor/project_converter_3_to_4.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/project_converter_3_to_4.cpp b/editor/project_converter_3_to_4.cpp
index f8ba3f0354..cb76147a56 100644
--- a/editor/project_converter_3_to_4.cpp
+++ b/editor/project_converter_3_to_4.cpp
@@ -2248,7 +2248,7 @@ Vector<String> ProjectConverter3To4::check_for_files() {
String path = directories_to_check.get(directories_to_check.size() - 1); // Is there any pop_back function?
directories_to_check.resize(directories_to_check.size() - 1); // Remove last element
- Ref<DirAccess> dir = DirAccess::create_for_path(path);
+ Ref<DirAccess> dir = DirAccess::open(path);
if (dir.is_valid()) {
dir->set_include_hidden(true);
dir->list_dir_begin();