Godot Engine – Multi-platform 2D and 3D game engine
Fix missing directory check not working for folder renames
AegisTTN0dd75f4b5be0
diff --git a/editor/file_system/editor_file_system.cpp b/editor/file_system/editor_file_system.cppindex 1a9e609fb0e..f2ae9d3a74e 100644--- a/editor/file_system/editor_file_system.cpp+++ b/editor/file_system/editor_file_system.cpp@@ -1932,7 +1932,8 @@ bool EditorFileSystem::_find_file(const String &p_file, EditorFileSystemDirectorif (idx == -1) {// Only create a missing directory in memory when it exists on disk.- if (!dir->dir_exists(fs->get_path().path_join(path_bit))) {+ String dir_path = fs->get_path().path_join(path_bit);+ if (!dir->dir_exists(ProjectSettings::get_singleton()->globalize_path(dir_path))) {return false;}EditorFileSystemDirectory *efsd = memnew(EditorFileSystemDirectory);