Skip to content

Commit

Permalink
Fix package:// asset parsing
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <[email protected]>
  • Loading branch information
luca-della-vedova committed Aug 22, 2024
1 parent 47552ea commit cac10b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rmf_site_editor/src/site_asset_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,11 @@ impl Plugin for SiteAssetIoPlugin {
"package",
BevyAssetSource::build().with_reader(|| {
Box::new(SiteAssetReader::new(|path: &Path| {
let path = (*expand_package_path(path.to_str().unwrap(), None)).to_owned();
let path = (*expand_package_path(
&("package://".to_owned() + path.to_str().unwrap()),
None,
))
.to_owned();
Box::pin(async move { load_from_file(path.into()) })
}))
}),
Expand Down

0 comments on commit cac10b4

Please sign in to comment.