diff --git a/crates/bevy_sprite/src/texture_atlas.rs b/crates/bevy_sprite/src/texture_atlas.rs index 6bdb6ffc4e72e..0de3f9e08f239 100644 --- a/crates/bevy_sprite/src/texture_atlas.rs +++ b/crates/bevy_sprite/src/texture_atlas.rs @@ -97,10 +97,7 @@ impl TextureAtlas { } sprites.push(Rect { - min: Vec2::new( - tile_size.x() + x_padding, - tile_size.y() + y_padding, - ), + min: Vec2::new(tile_size.x() + x_padding, tile_size.y() + y_padding), max: Vec2::new( (x + 1) as f32 * tile_size.x(), (y + 1) as f32 * tile_size.y(),