From 334c9d6231980315e0b2997703a3cfb75b2daa10 Mon Sep 17 00:00:00 2001 From: NixyJuppie Date: Sat, 11 Nov 2023 13:00:41 +0100 Subject: [PATCH] Implement Debug for SpriteBundle and SpriteSheetBundle --- crates/bevy_sprite/src/bundle.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_sprite/src/bundle.rs b/crates/bevy_sprite/src/bundle.rs index 7013993482347..89460b6f617ae 100644 --- a/crates/bevy_sprite/src/bundle.rs +++ b/crates/bevy_sprite/src/bundle.rs @@ -10,7 +10,7 @@ use bevy_render::{ }; use bevy_transform::components::{GlobalTransform, Transform}; -#[derive(Bundle, Clone, Default)] +#[derive(Bundle, Clone, Debug, Default)] pub struct SpriteBundle { pub sprite: Sprite, pub transform: Transform, @@ -26,7 +26,7 @@ pub struct SpriteBundle { /// A Bundle of components for drawing a single sprite from a sprite sheet (also referred /// to as a `TextureAtlas`) -#[derive(Bundle, Clone, Default)] +#[derive(Bundle, Clone, Debug, Default)] pub struct SpriteSheetBundle { /// The specific sprite from the texture atlas to be drawn, defaulting to the sprite at index 0. pub sprite: TextureAtlasSprite,