From d831e32c6744df0a85438bf2d657d32e9da0992f Mon Sep 17 00:00:00 2001 From: lielfr Date: Sun, 8 Jun 2025 23:42:21 +0300 Subject: [PATCH] fix build --- crates/bevy_asset/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_asset/src/path.rs b/crates/bevy_asset/src/path.rs index 83d740718a..a43bf29eb6 100644 --- a/crates/bevy_asset/src/path.rs +++ b/crates/bevy_asset/src/path.rs @@ -263,7 +263,7 @@ impl<'a> AssetPath<'a> { #[inline] pub fn from_path_buf(path_buf: PathBuf) -> AssetPath<'a> { AssetPath { - path: CowArc::Owned(path_buf.into()), + path: CowArc::Owned(path_buf.as_os_str().to_str().unwrap().into()), source: AssetSourceId::Default, label: None, }