Skip to content

Commit

Permalink
promote atlas sources texture_ids to pub visibility (#15795)
Browse files Browse the repository at this point in the history
In order to create texture atlases from other systems (custom game
solutions) that are compatible with the ones generated by the bevy
builders, it would be nice to have the interface be fully public. This
field is pub(crate). Unless there's a good reason, can we promote this
to pub?

Alternatives:
- Don't do it.
  • Loading branch information
brandon-reinhart authored Oct 9, 2024
1 parent c2c19e5 commit 88d9ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_sprite/src/texture_atlas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use bevy_utils::HashMap;
#[derive(Debug)]
pub struct TextureAtlasSources {
/// Maps from a specific image handle to the index in `textures` where they can be found.
pub(crate) texture_ids: HashMap<AssetId<Image>, usize>,
pub texture_ids: HashMap<AssetId<Image>, usize>,
}
impl TextureAtlasSources {
/// Retrieves the texture *section* index of the given `texture` handle.
Expand Down

0 comments on commit 88d9ead

Please sign in to comment.