mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Assign temporary path to preloaded resources
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user