Skip to content
Snippets Groups Projects
Verified Commit b7a772dc authored by Louis's avatar Louis :fire:
Browse files

Fix sub-asset path in Level loader

parent c75898be
No related branches found
No related tags found
No related merge requests found
......@@ -171,7 +171,14 @@ impl AssetLoader for LdtkLoader {
let asset = LoadedAsset::new(project).with_dependencies(
sub_levels
.into_iter()
.map(|(id, path)| AssetPath::new(path.into(), Some(id)))
.flat_map(|(id, path)| {
load_context
.path()
.join(path)
.canonicalize()
.map(|path| AssetPath::new(path, Some(id)))
.ok()
})
.collect(),
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment