feat!: Renamed SynthizerSets::First to SynthizerSets::PreUpdate and moved remaining systems into PostUpdate.

This commit is contained in:
Nolan Darilek 2023-10-16 07:29:49 -05:00
parent 1fb0aa763a
commit 04372328c8

View File

@ -689,7 +689,7 @@ fn events(
#[derive(SystemSet, Clone, Hash, Debug, PartialEq, Eq)] #[derive(SystemSet, Clone, Hash, Debug, PartialEq, Eq)]
pub enum SynthizerSets { pub enum SynthizerSets {
First, PreUpdate,
UpdateHandles, UpdateHandles,
UpdateProperties, UpdateProperties,
UpdateState, UpdateState,
@ -756,21 +756,12 @@ impl Plugin for SynthizerPlugin {
.add_event::<SynthizerEvent>() .add_event::<SynthizerEvent>()
.add_systems( .add_systems(
PreUpdate, PreUpdate,
( (sync_config, swap_buffers, change_panner_strategy).in_set(SynthizerSets::PreUpdate),
sync_config,
swap_buffers,
change_panner_strategy,
add_sound_without_source,
)
.in_set(SynthizerSets::First),
)
.configure_set(
PreUpdate,
SynthizerSets::First.before(SynthizerSets::UpdateHandles),
) )
.add_systems( .add_systems(
PostUpdate, PostUpdate,
(add_source_handle, add_generator).in_set(SynthizerSets::UpdateHandles), (add_sound_without_source, add_source_handle, add_generator)
.in_set(SynthizerSets::UpdateHandles),
) )
.configure_set( .configure_set(
PostUpdate, PostUpdate,