1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Merge pull request #49624 from nekomatata/fix-sub-resource-cache

Fix sub-resource storing the wrong index in cache
This commit is contained in:
Rémi Verschelde
2021-06-15 20:38:34 +02:00
committed by GitHub

View File

@@ -575,6 +575,7 @@ Error ResourceLoaderText::load() {
int_resources[id] = res; //always assign int resources
if (do_assign && cache_mode != ResourceFormatLoader::CACHE_MODE_IGNORE) {
res->set_path(path, cache_mode == ResourceFormatLoader::CACHE_MODE_REPLACE);
res->set_subindex(id);
}
if (progress && resources_total > 0) {