Fix SytemParam handling of Commands (#1899)

Fixes https://github.com/bevyengine/bevy/issues/1896
This commit is contained in:
Daniel McNab 2021-04-14 23:58:27 +00:00
parent e0b52079da
commit a137df7d57

View file

@ -400,6 +400,10 @@ pub fn derive_system_param(input: TokenStream) -> TokenStream {
fn default_config() -> TSystemParamState::Config {
TSystemParamState::default_config()
}
fn apply(&mut self, world: &mut #path::world::World) {
self.state.apply(world)
}
}
impl #impl_generics #path::system::SystemParamFetch<'a> for #fetch_struct_name <(#(<#field_types as SystemParam>::Fetch,)*), #punctuated_generic_idents> {