Skip to content

Commit

Permalink
Fixed issue #18022
Browse files Browse the repository at this point in the history
  • Loading branch information
Threadzless committed Feb 24, 2025
1 parent ed1143b commit ab7b25b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_asset/src/io/file/file_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ impl FilesystemEventHandler for FileEventHandler {
self.last_event = None;
}
fn get_path(&self, absolute_path: &Path) -> Option<(PathBuf, bool)> {
Some(get_asset_path(&self.root, absolute_path))
let absolute_path = absolute_path.canonicalize().unwrap();
Some(get_asset_path(&self.root, &absolute_path))
}

fn handle(&mut self, _absolute_paths: &[PathBuf], event: AssetSourceEvent) {
Expand Down

0 comments on commit ab7b25b

Please sign in to comment.