Skip to content

Commit

Permalink
allow some internal ambiguities
Browse files Browse the repository at this point in the history
  • Loading branch information
hymm committed Sep 22, 2023
1 parent e0af218 commit 24e1525
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_render/src/texture/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ impl Plugin for ImagePlugin {
app.add_plugins(RenderAssetPlugin::<Image>::default())
.register_type::<Image>()
.init_asset::<Image>()
.allow_ambiguous_resource::<Assets<Image>>()
.register_asset_reflect::<Image>();
app.world
.resource_mut::<Assets<Image>>()
Expand Down
1 change: 1 addition & 0 deletions crates/bevy_sprite/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ impl Plugin for SpritePlugin {
Shader::from_wgsl
);
app.init_asset::<TextureAtlas>()
.allow_ambiguous_resource::<Assets<TextureAtlas>>()
.register_asset_reflect::<TextureAtlas>()
.register_type::<Sprite>()
.register_type::<TextureAtlasSprite>()
Expand Down

0 comments on commit 24e1525

Please sign in to comment.