We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f8a762 commit 56c9dd4Copy full SHA for 56c9dd4
crates/bevy_ui/src/render/mod.rs
@@ -195,13 +195,9 @@ pub fn extract_uinodes(
195
}
196
197
let (image, atlas_size, rect_min) = match image {
198
- UiImage::Image(handle) => {
199
- let handle = handle.clone_weak();
200
- (handle, None, Vec2::ZERO)
201
- }
+ UiImage::Image(handle) => (handle.clone_weak(), None, Vec2::ZERO),
202
UiImage::TextureAtlas { handle, index } => {
203
204
- if let Some(atlas) = texture_atlases.get(&handle) {
+ if let Some(atlas) = texture_atlases.get(handle) {
205
let rect = atlas.textures.get(*index).copied().unwrap_or_else(|| {
206
panic!("TextureAtlas {:?} as no texture at index {}", atlas, index)
207
});
0 commit comments