Skip to content

Commit

Permalink
Fix SytemParam handling of Commands (#1899)
Browse files Browse the repository at this point in the history
Fixes #1896
  • Loading branch information
DJMcNab committed Apr 14, 2021
1 parent e0b5207 commit a137df7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/bevy_ecs/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {
Expand Down

0 comments on commit a137df7

Please sign in to comment.