summaryrefslogtreecommitdiffstats
path: root/editor/editor_file_system.cpp
diff options
context:
space:
mode:
authorVictor Kostin <victor.kostin.s@gmail.com>2024-07-04 00:25:16 +0500
committerRémi Verschelde <rverschelde@gmail.com>2024-07-04 14:25:00 +0200
commit3afc7774de071e6a8c03937ba87779e3e75bb0d9 (patch)
treedbae554c82fdab2ab6e9a5674d6fa53b1f96844b /editor/editor_file_system.cpp
parent6a13fdcae3662975c101213d47a1eb3a7db63cb3 (diff)
downloadredot-engine-3afc7774de071e6a8c03937ba87779e3e75bb0d9.tar.gz
Fix custom resources often missing from Quick Load dialog
Diffstat (limited to 'editor/editor_file_system.cpp')
-rw-r--r--editor/editor_file_system.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_file_system.cpp b/editor/editor_file_system.cpp
index f0dc850af0..289f5e463f 100644
--- a/editor/editor_file_system.cpp
+++ b/editor/editor_file_system.cpp
@@ -326,8 +326,8 @@ void EditorFileSystem::_scan_filesystem() {
FileCache fc;
fc.type = split[1];
if (fc.type.contains("/")) {
- fc.type = fc.type.get_slice("/", 0);
- fc.resource_script_class = fc.type.get_slice("/", 1);
+ fc.type = split[1].get_slice("/", 0);
+ fc.resource_script_class = split[1].get_slice("/", 1);
}
fc.uid = split[2].to_int();
fc.modification_time = split[3].to_int();