summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--editor/filesystem_dock.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp
index ecbfe4bec5..216b948ed8 100644
--- a/editor/filesystem_dock.cpp
+++ b/editor/filesystem_dock.cpp
@@ -1004,6 +1004,9 @@ void FileSystemDock::_update_file_list(bool p_keep_selection) {
}
}
} else {
+ if (!directory.begins_with("res://")) {
+ directory = "res://" + directory;
+ }
// Get infos on the directory + file.
if (directory.ends_with("/") && directory != "res://") {
directory = directory.substr(0, directory.length() - 1);