You've already forked godot
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user