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

@@ -577,6 +577,8 @@ Error ResourceLoaderText::load() {
if (do_assign) {
if (cache_mode != ResourceFormatLoader::CACHE_MODE_IGNORE) {
res->set_path(path, cache_mode == ResourceFormatLoader::CACHE_MODE_REPLACE);
} else if (!path.is_resource_file()) {
res->set_path_cache(path);
}
res->set_scene_unique_id(id);
}