Skip to content

Commit

Permalink
Send an AssetEvent when modifying using get_id_mut (#323)
Browse files Browse the repository at this point in the history
Fixes #321
  • Loading branch information
DJMcNab authored Aug 24, 2020
1 parent 6c43aff commit f713150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_asset/src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl<T: Resource> Assets<T> {
}

pub fn get_id_mut(&mut self, id: HandleId) -> Option<&mut T> {
self.assets.get_mut(&Handle::from_id(id))
self.get_mut(&Handle::from_id(id))
}

pub fn get(&self, handle: &Handle<T>) -> Option<&T> {
Expand Down

0 comments on commit f713150

Please sign in to comment.