mirror of
https://github.com/bevyengine/bevy
synced 2025-02-18 06:58:34 +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 {
|
fn default_config() -> TSystemParamState::Config {
|
||||||
TSystemParamState::default_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> {
|
impl #impl_generics #path::system::SystemParamFetch<'a> for #fetch_struct_name <(#(<#field_types as SystemParam>::Fetch,)*), #punctuated_generic_idents> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue