Send an AssetEvent when modifying using get_id_mut (#323)

Fixes #321
This commit is contained in:
Daniel McNab 2020-08-24 19:20:41 +01:00 committed by GitHub
parent 6c43afff08
commit f7131509b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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> {