Skip to content

Commit

Permalink
Fix SytemParam handling of Commands (bevyengine#1899)
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab authored and ostwilkens committed Jul 27, 2021
1 parent c1e4910 commit ffaeab0
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 ffaeab0

Please sign in to comment.