-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
C-Code-QualityA section of code that is hard to understand or changeA section of code that is hard to understand or changeD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with BevyS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!X-UncontroversialThis work is generally agreed uponThis work is generally agreed upon
Description
bevy/crates/bevy_image/src/texture_atlas.rs
Lines 33 to 39 in ef71186
pub struct TextureAtlasSources { | |
/// Maps from a specific image handle to the index in `textures` where they can be found. | |
pub texture_ids: HashMap<AssetId<Image>, usize>, | |
} | |
impl TextureAtlasSources { | |
/// Retrieves the texture *section* index of the given `texture` handle. | |
pub fn texture_index(&self, texture: impl Into<AssetId<Image>>) -> Option<usize> { |
There definitely should be an empty line between struct declaration and an impl block (between lines: 36 and 37)
Metadata
Metadata
Assignees
Labels
C-Code-QualityA section of code that is hard to understand or changeA section of code that is hard to understand or changeD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with BevyS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!This issue is ready for an implementation PR. Go for it!X-UncontroversialThis work is generally agreed uponThis work is generally agreed upon