1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Calculate md5 of import files when cache is missing. Prevents "forced" reimport

This commit is contained in:
h1v9
2025-07-10 11:06:19 +02:00
parent f92f1ce9c0
commit 33a199d1cb

View File

@@ -1284,7 +1284,7 @@ void EditorFileSystem::_process_file_system(const ScannedDirectory *p_scan_dir,
fi->class_info = _get_global_script_class(fi->type, path); fi->class_info = _get_global_script_class(fi->type, path);
fi->modified_time = 0; fi->modified_time = 0;
fi->import_modified_time = 0; fi->import_modified_time = 0;
fi->import_md5 = ""; fi->import_md5 = FileAccess::get_md5(path + ".import");
fi->import_dest_paths = Vector<String>(); fi->import_dest_paths = Vector<String>();
fi->import_valid = (fi->type == "TextFile" || fi->type == "OtherFile") ? true : ResourceLoader::is_import_valid(path); fi->import_valid = (fi->type == "TextFile" || fi->type == "OtherFile") ? true : ResourceLoader::is_import_valid(path);