Assign temporary path to preloaded resources
This commit is contained in:
parent
9df6491853
commit
a3627b6e37
7 changed files with 17 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue