From 5780e89692ba0ddaaa594bbb782baa2321816970 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Mon, 24 Aug 2020 15:44:23 +0100 Subject: [PATCH] Send an AssetEvent when modifying using get_id_mut Fixes #321 --- crates/bevy_asset/src/assets.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_asset/src/assets.rs b/crates/bevy_asset/src/assets.rs index 201614f862503..208045ff1f4df 100644 --- a/crates/bevy_asset/src/assets.rs +++ b/crates/bevy_asset/src/assets.rs @@ -65,7 +65,7 @@ impl Assets { } 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) -> Option<&T> {