Skip to content

Commit 907db8e

Browse files
committed
Merge pull request #87563 from jsjtxietian/fix-filesystem-infinite
Fix editor will freeze when modifying filesystem filter path in Split Mode
2 parents 9705ac4 + 650b9d6 commit 907db8e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

editor/filesystem_dock.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,9 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) {
979979
}
980980
}
981981
} else {
982+
if (!directory.begins_with("res://")) {
983+
directory = "res://" + directory;
984+
}
982985
// Get infos on the directory + file.
983986
if (directory.ends_with("/") && directory != "res://") {
984987
directory = directory.substr(0, directory.length() - 1);

0 commit comments

Comments
 (0)