mirror of
https://github.com/bevyengine/bevy
synced 2024-11-21 20:23:28 +00:00
promote atlas sources texture_ids to pub visibility (#15795)
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.
This commit is contained in:
parent
c2c19e5ae4
commit
88d9ead7f8
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue