Merge pull request #107114 from tehKaiN/fix-async-resource-loading-progress-on-empty-original-path

Fix async resource loading progress on empty `p_original_path`
This commit is contained in:
Rémi Verschelde 2025-06-07 00:43:49 +02:00
commit 66e041d52f
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -296,7 +296,7 @@ Ref<Resource> ResourceLoader::_load(const String &p_path, const String &p_origin
// Avoid double-tracking, for progress reporting, resources that boil down to a remapped path containing the real payload (e.g., imported resources). // Avoid double-tracking, for progress reporting, resources that boil down to a remapped path containing the real payload (e.g., imported resources).
bool is_remapped_load = original_path == parent_task_path; bool is_remapped_load = original_path == parent_task_path;
if (E && !is_remapped_load) { if (E && !is_remapped_load) {
E->value.sub_tasks.insert(p_original_path); E->value.sub_tasks.insert(original_path);
} }
} }
load_paths_stack.push_back(original_path); load_paths_stack.push_back(original_path);