From 28597e4082647b3b8c11a32903e1d011589970c0 Mon Sep 17 00:00:00 2001 From: s-puig <39652109+s-puig@users.noreply.github.com> Date: Thu, 19 Sep 2024 18:06:09 +0200 Subject: [PATCH] Cleanup legacy code from bevy_sprite (#15304) # Objective - Remove legacy stuff --- crates/bevy_sprite/src/sprite.rs | 1 - crates/bevy_sprite/src/texture_atlas.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/crates/bevy_sprite/src/sprite.rs b/crates/bevy_sprite/src/sprite.rs index dcab26622a..13e37ee56c 100644 --- a/crates/bevy_sprite/src/sprite.rs +++ b/crates/bevy_sprite/src/sprite.rs @@ -10,7 +10,6 @@ use crate::TextureSlicer; /// This is commonly used as a component within [`SpriteBundle`](crate::bundle::SpriteBundle). #[derive(Component, Debug, Default, Clone, Reflect)] #[reflect(Component, Default, Debug)] -#[repr(C)] pub struct Sprite { /// The sprite's color tint pub color: Color, diff --git a/crates/bevy_sprite/src/texture_atlas.rs b/crates/bevy_sprite/src/texture_atlas.rs index a4a752865d..70e10e5914 100644 --- a/crates/bevy_sprite/src/texture_atlas.rs +++ b/crates/bevy_sprite/src/texture_atlas.rs @@ -21,7 +21,6 @@ use bevy_utils::HashMap; #[derive(Asset, Reflect, Debug, Clone)] #[reflect(Debug)] pub struct TextureAtlasLayout { - // TODO: add support to Uniforms derive to write dimensions and sprites to the same buffer pub size: UVec2, /// The specific areas of the atlas where each texture can be found pub textures: Vec,