From b38cc9e7b0722ee90549d17cd2e386caad213d92 Mon Sep 17 00:00:00 2001 From: Blazepaws <157802762+blazepaws@users.noreply.github.com> Date: Sun, 15 Sep 2024 19:16:45 +0200 Subject: [PATCH] Reflect derived traits on all components and resources: bevy_state (#15228) Solves https://github.com/bevyengine/bevy/issues/15187 for bevy_state --- crates/bevy_state/src/state/resources.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_state/src/state/resources.rs b/crates/bevy_state/src/state/resources.rs index c9f4279634..e4d5804ebf 100644 --- a/crates/bevy_state/src/state/resources.rs +++ b/crates/bevy_state/src/state/resources.rs @@ -52,7 +52,7 @@ use bevy_reflect::prelude::ReflectDefault; #[cfg_attr( feature = "bevy_reflect", derive(bevy_reflect::Reflect), - reflect(Resource) + reflect(Resource, Debug, PartialEq) )] pub struct State(pub(crate) S); @@ -118,7 +118,7 @@ impl Deref for State { #[cfg_attr( feature = "bevy_reflect", derive(bevy_reflect::Reflect), - reflect(Resource, Default) + reflect(Resource, Default, Debug) )] pub enum NextState { /// No state transition is pending