Skip to content

Commit

Permalink
Fix removing a folder that contains a file is not removed from the Fi…
Browse files Browse the repository at this point in the history
…leSystem Dock
  • Loading branch information
Hilderin committed Jul 16, 2024
1 parent 97b8ad1 commit a1ef54f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion editor/editor_file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1594,7 +1594,10 @@ bool EditorFileSystem::_find_file(const String &p_file, EditorFileSystemDirector
}

if (idx == -1) {
//does not exist, create i guess?
// Only create a missing directory in memory when it exists on disk.
if (!dir->dir_exists(fs->get_path().path_join(path[i]))) {
return false;
}
EditorFileSystemDirectory *efsd = memnew(EditorFileSystemDirectory);

efsd->name = path[i];
Expand Down

0 comments on commit a1ef54f

Please sign in to comment.