diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-15 20:38:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 20:38:34 +0200 |
commit | 1cc6385858948b293a9fb6c0b25541ac0817fa20 (patch) | |
tree | d3eac28588e46cac34e88a63c5bee5d8adf165c4 /scene/resources | |
parent | e312df09728b8d6e794c840ae55565ff53f57529 (diff) | |
parent | 3c3d7380e22c6c3c8031f88944a79be750e1c1ae (diff) |
Merge pull request #49624 from nekomatata/fix-sub-resource-cache
Fix sub-resource storing the wrong index in cache
Diffstat (limited to 'scene/resources')
-rw-r--r-- | scene/resources/resource_format_text.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/resource_format_text.cpp b/scene/resources/resource_format_text.cpp index 2a60f54fdd..27f0c50a79 100644 --- a/scene/resources/resource_format_text.cpp +++ b/scene/resources/resource_format_text.cpp @@ -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) { |