@@ -336,6 +336,10 @@ void ResourceLoader::_remove_from_loading_map_and_thread(const String &p_path, T
336336}
337337
338338RES ResourceLoader::load (const String &p_path, const String &p_type_hint, bool p_no_cache, Error *r_error) {
339+ return load (p_path, p_type_hint, p_no_cache, false , r_error);
340+ }
341+
342+ RES ResourceLoader::load (const String &p_path, const String &p_type_hint, bool p_no_cache, bool p_no_subresources_cache, Error *r_error) {
339343 if (r_error) {
340344 *r_error = ERR_CANT_OPEN;
341345 }
@@ -386,7 +390,7 @@ RES ResourceLoader::load(const String &p_path, const String &p_type_hint, bool p
386390 }
387391
388392 print_verbose (" Loading resource: " + path);
389- RES res = _load (path, local_path, p_type_hint, p_no_cache , r_error);
393+ RES res = _load (path, local_path, p_type_hint, p_no_subresources_cache , r_error);
390394
391395 if (res.is_null ()) {
392396 if (!p_no_cache) {
@@ -453,6 +457,10 @@ bool ResourceLoader::exists(const String &p_path, const String &p_type_hint) {
453457}
454458
455459Ref<ResourceInteractiveLoader> ResourceLoader::load_interactive (const String &p_path, const String &p_type_hint, bool p_no_cache, Error *r_error) {
460+ return load_interactive (p_path, p_type_hint, p_no_cache, p_no_cache, r_error);
461+ }
462+
463+ Ref<ResourceInteractiveLoader> ResourceLoader::load_interactive (const String &p_path, const String &p_type_hint, bool p_no_cache, bool p_no_subresources_cache, Error *r_error) {
456464 if (r_error) {
457465 *r_error = ERR_CANT_OPEN;
458466 }
@@ -497,7 +505,7 @@ Ref<ResourceInteractiveLoader> ResourceLoader::load_interactive(const String &p_
497505 continue ;
498506 }
499507 found = true ;
500- Ref<ResourceInteractiveLoader> ril = loader[i]->load_interactive (path, local_path, r_error, p_no_cache );
508+ Ref<ResourceInteractiveLoader> ril = loader[i]->load_interactive (path, local_path, r_error, p_no_subresources_cache );
501509 if (ril.is_null ()) {
502510 continue ;
503511 }
0 commit comments