Skip to content

Commit

Permalink
Merge branch 'main' into mouse_interaction_workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mxgrey committed Aug 27, 2024
2 parents 281c33a + 5bbbc0c commit 331fef9
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 331fef9

Please sign in to comment.