1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-01 16:38:31 +00:00

Assign temporary path to preloaded resources

This commit is contained in:
kobewi
2023-08-05 02:07:16 +02:00
parent 9df6491853
commit a3627b6e37
7 changed files with 17 additions and 0 deletions

View File

@@ -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);
}