Skip to content

Commit

Permalink
Add registrations for ReflectDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
johanhelsing committed Sep 10, 2023
1 parent 75146ef commit c1fd875
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/bevy_ecs/src/schedule/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::ops::Deref;
use crate as bevy_ecs;
use crate::change_detection::DetectChangesMut;
#[cfg(feature = "bevy_reflect")]
use crate::reflect::ReflectResource;
use crate::reflect::{ReflectDefault, ReflectResource};
use crate::schedule::ScheduleLabel;
use crate::system::Resource;
use crate::world::World;
Expand Down Expand Up @@ -80,7 +80,7 @@ pub struct OnTransition<S: States> {
#[cfg_attr(
feature = "bevy_reflect",
derive(bevy_reflect::Reflect),
reflect(Resource)
reflect(Resource, Default)
)]
pub struct State<S: States>(S);

Expand Down Expand Up @@ -121,7 +121,7 @@ impl<S: States> Deref for State<S> {
#[cfg_attr(
feature = "bevy_reflect",
derive(bevy_reflect::Reflect),
reflect(Resource)
reflect(Resource, Default)
)]
pub struct NextState<S: States>(pub Option<S>);

Expand Down

0 comments on commit c1fd875

Please sign in to comment.