浏览代码

Fix custom resources often missing from Quick Load dialog

Victor Kostin 1 年之前
父节点
当前提交
3afc7774de
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/editor_file_system.cpp

+ 2 - 2
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();