From 88d9ead7f8ba89216669055396d92ee9f28def5d Mon Sep 17 00:00:00 2001 From: Brandon Reinhart Date: Wed, 9 Oct 2024 11:37:26 -0700 Subject: [PATCH] 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. --- crates/bevy_sprite/src/texture_atlas.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_sprite/src/texture_atlas.rs b/crates/bevy_sprite/src/texture_atlas.rs index 9fe109bd64a20..18ab621a20e02 100644 --- a/crates/bevy_sprite/src/texture_atlas.rs +++ b/crates/bevy_sprite/src/texture_atlas.rs @@ -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, usize>, + pub texture_ids: HashMap, usize>, } impl TextureAtlasSources { /// Retrieves the texture *section* index of the given `texture` handle.