From 63f45cd75d1d6d3ab7c04b472825fc387d5aac8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Fri, 5 Apr 2024 15:22:17 +0200 Subject: [PATCH] Revert "Push p_original_path into load_paths_stack and sub_tasks instead of p_path." This reverts commit 5cc432e7a13730a10e4b09b51dd72598c1b3ac8e. --- core/io/resource_loader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index bc8c68eb430..5004b26156a 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -244,11 +244,11 @@ Ref ResourceLoader::_load(const String &p_path, const String &p_origin thread_load_mutex.lock(); HashMap::Iterator E = thread_load_tasks.find(load_paths_stack->get(load_paths_stack->size() - 1)); if (E) { - E->value.sub_tasks.insert(p_original_path); + E->value.sub_tasks.insert(p_path); } thread_load_mutex.unlock(); } - load_paths_stack->push_back(p_original_path); + load_paths_stack->push_back(p_path); // Try all loaders and pick the first match for the type hint bool found = false;