You've already forked godot
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user