diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-12 12:13:55 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-12 12:13:55 +0100 |
commit | 8928b2044b76fb3160c5c17a48a93331233f01f9 (patch) | |
tree | df3fb8fc2cc6376e5ac29b75ec3712ddcdd746cf /core/io/resource_format_binary.cpp | |
parent | 89f2f7f278b27db396589d50e51be8a1e6dca919 (diff) | |
parent | a3627b6e37049ca55cc0d5227a4ff7bc1b19ae1e (diff) | |
download | redot-engine-8928b2044b76fb3160c5c17a48a93331233f01f9.tar.gz |
Merge pull request #80281 from KoBeWi/unacceptable
Assign temporary path to preloaded resources
Diffstat (limited to 'core/io/resource_format_binary.cpp')
-rw-r--r-- | core/io/resource_format_binary.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/io/resource_format_binary.cpp b/core/io/resource_format_binary.cpp index ea97e5ecce..2a33f723dc 100644 --- a/core/io/resource_format_binary.cpp +++ b/core/io/resource_format_binary.cpp @@ -774,6 +774,8 @@ Error ResourceLoaderBinary::load() { res = Ref<Resource>(r); if (!path.is_empty() && cache_mode != ResourceFormatLoader::CACHE_MODE_IGNORE) { r->set_path(path, cache_mode == ResourceFormatLoader::CACHE_MODE_REPLACE); //if got here because the resource with same path has different type, replace it + } else if (!path.is_resource_file()) { + r->set_path_cache(path); } r->set_scene_unique_id(id); } |