mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 22:20:20 +00:00
Fix SytemParam handling of Commands (#1899)
Fixes https://github.com/bevyengine/bevy/issues/1896
This commit is contained in:
parent
e0b52079da
commit
a137df7d57
1 changed files with 4 additions and 0 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue