From 24e1525a5db96dd164b7e6ce5f422b6f36fb8361 Mon Sep 17 00:00:00 2001 From: Mike Hsu Date: Thu, 21 Sep 2023 18:41:25 -0700 Subject: [PATCH] allow some internal ambiguities --- crates/bevy_render/src/texture/mod.rs | 1 + crates/bevy_sprite/src/lib.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/crates/bevy_render/src/texture/mod.rs b/crates/bevy_render/src/texture/mod.rs index 7f08ec46c93a3b..571b7aa33cb44e 100644 --- a/crates/bevy_render/src/texture/mod.rs +++ b/crates/bevy_render/src/texture/mod.rs @@ -85,6 +85,7 @@ impl Plugin for ImagePlugin { app.add_plugins(RenderAssetPlugin::::default()) .register_type::() .init_asset::() + .allow_ambiguous_resource::>() .register_asset_reflect::(); app.world .resource_mut::>() diff --git a/crates/bevy_sprite/src/lib.rs b/crates/bevy_sprite/src/lib.rs index 1eb3b1a5cc64cd..e58c4ae4f45ddd 100644 --- a/crates/bevy_sprite/src/lib.rs +++ b/crates/bevy_sprite/src/lib.rs @@ -61,6 +61,7 @@ impl Plugin for SpritePlugin { Shader::from_wgsl ); app.init_asset::() + .allow_ambiguous_resource::>() .register_asset_reflect::() .register_type::() .register_type::()