chore: Only update_source_properties and update_listener need to run after transform propagation.

This commit is contained in:
Nolan Darilek 2023-04-04 07:20:43 -05:00
parent c14f94eb76
commit 459d074040

View File

@ -770,20 +770,18 @@ impl Plugin for SynthizerPlugin {
.in_set(SynthizerSets::UpdateHandles), .in_set(SynthizerSets::UpdateHandles),
) )
.configure_set(SynthizerSets::UpdateHandles.before(SynthizerSets::UpdateProperties)) .configure_set(SynthizerSets::UpdateHandles.before(SynthizerSets::UpdateProperties))
.add_systems( .add_system(
( update_sound_properties
update_listener,
update_source_properties,
update_sound_properties,
)
.in_base_set(CoreSet::PostUpdate) .in_base_set(CoreSet::PostUpdate)
.in_set(SynthizerSets::UpdateProperties), .in_set(SynthizerSets::UpdateProperties),
) )
.configure_set( .add_systems(
SynthizerSets::UpdateProperties (update_listener, update_source_properties)
.before(SynthizerSets::UpdateState) .in_base_set(CoreSet::PostUpdate)
.in_set(SynthizerSets::UpdateProperties)
.after(TransformSystem::TransformPropagate), .after(TransformSystem::TransformPropagate),
) )
.configure_set(SynthizerSets::UpdateProperties.before(SynthizerSets::UpdateState))
.add_systems( .add_systems(
(update_source_playback_state, update_sound_playback_state) (update_source_playback_state, update_sound_playback_state)
.in_base_set(CoreSet::PostUpdate) .in_base_set(CoreSet::PostUpdate)