From 47bd1e868893c6ad8cd56b591115b181726b7b93 Mon Sep 17 00:00:00 2001 From: TheoXD Date: Mon, 30 May 2016 01:22:00 +0200 Subject: fixed interactive_loader() not returning a cached scene --- core/io/resource_loader.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'core/io/resource_loader.cpp') diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index b547dc0e85..1bb80e74eb 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -319,7 +319,11 @@ Ref ResourceLoader::load_interactive(const String &p_ if (OS::get_singleton()->is_stdout_verbose()) print_line("load resource: "+local_path+" (cached)"); - return RES( ResourceCache::get(local_path ) ); + Ref res_cached = ResourceCache::get(local_path); + Ref ril = Ref(memnew(ResourceInteractiveLoaderDefault)); + + ril->resource = res_cached; + return ril; } if (OS::get_singleton()->is_stdout_verbose()) -- cgit v1.2.3