fixed interactive_loader() not returning a cached scene
(cherry picked from commit 47bd1e8688
)
This commit is contained in:
parent
a39eaf4c66
commit
5a45b295ae
|
@ -318,7 +318,11 @@ Ref<ResourceInteractiveLoader> ResourceLoader::load_interactive(const String &p_
|
||||||
if (OS::get_singleton()->is_stdout_verbose())
|
if (OS::get_singleton()->is_stdout_verbose())
|
||||||
print_line("load resource: "+local_path+" (cached)");
|
print_line("load resource: "+local_path+" (cached)");
|
||||||
|
|
||||||
return RES( ResourceCache::get(local_path ) );
|
Ref<Resource> res_cached = ResourceCache::get(local_path);
|
||||||
|
Ref<ResourceInteractiveLoaderDefault> ril = Ref<ResourceInteractiveLoaderDefault>(memnew(ResourceInteractiveLoaderDefault));
|
||||||
|
|
||||||
|
ril->resource = res_cached;
|
||||||
|
return ril;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OS::get_singleton()->is_stdout_verbose())
|
if (OS::get_singleton()->is_stdout_verbose())
|
||||||
|
|
Loading…
Reference in New Issue