Skip to content

Commit

Permalink
Implement Debug for SpriteBundle and SpriteSheetBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
NixyJuppie committed Nov 11, 2023
1 parent 2a036b6 commit 334c9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_sprite/src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 334c9d6

Please sign in to comment.