Skip to content

Commit 19a9415

Browse files
committed
Fix async resource loading progress on empty p_original_path
1 parent 1b37dac commit 19a9415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/io/resource_loader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ Ref<Resource> ResourceLoader::_load(const String &p_path, const String &p_origin
296296
// Avoid double-tracking, for progress reporting, resources that boil down to a remapped path containing the real payload (e.g., imported resources).
297297
bool is_remapped_load = original_path == parent_task_path;
298298
if (E && !is_remapped_load) {
299-
E->value.sub_tasks.insert(p_original_path);
299+
E->value.sub_tasks.insert(original_path);
300300
}
301301
}
302302
load_paths_stack.push_back(original_path);

0 commit comments

Comments
 (0)