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

Fix CSV translation not updating after reimport

This commit is contained in:
Haoyu Qiu
2025-06-11 20:31:59 +08:00
parent 46c495ca21
commit 296aba7dc5
7 changed files with 110 additions and 17 deletions

View File

@@ -2982,6 +2982,13 @@ Error EditorFileSystem::_reimport_file(const String &p_file, const HashMap<Strin
fs->files[cpos]->import_valid = fs->files[cpos]->type == "TextFile" ? true : ResourceLoader::is_import_valid(p_file);
}
for (const String &path : gen_files) {
Ref<Resource> cached = ResourceCache::get_ref(path);
if (cached.is_valid()) {
cached->reload_from_file();
}
}
if (ResourceUID::get_singleton()->has_id(uid)) {
ResourceUID::get_singleton()->set_id(uid, p_file);
} else {