diff --git a/crates/bevy_sprite/src/texture_atlas.rs b/crates/bevy_sprite/src/texture_atlas.rs index 0de3f9e08f239..c6a149dde30bc 100644 --- a/crates/bevy_sprite/src/texture_atlas.rs +++ b/crates/bevy_sprite/src/texture_atlas.rs @@ -106,7 +106,7 @@ impl TextureAtlas { } } TextureAtlas { - size: Vec2::new(tile_size.x() * columns, tile_size.y() * rows), + size: Vec2::new(tile_size.x() * columns as f32, tile_size.y() * rows as f32), textures: sprites, texture, texture_handles: None,