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),
)
.configure_set(SynthizerSets::UpdateHandles.before(SynthizerSets::UpdateProperties))
.add_systems(
(
update_listener,
update_source_properties,
update_sound_properties,
)
.add_system(
update_sound_properties
.in_base_set(CoreSet::PostUpdate)
.in_set(SynthizerSets::UpdateProperties),
)
.configure_set(
SynthizerSets::UpdateProperties
.before(SynthizerSets::UpdateState)
.add_systems(
(update_listener, update_source_properties)
.in_base_set(CoreSet::PostUpdate)
.in_set(SynthizerSets::UpdateProperties)
.after(TransformSystem::TransformPropagate),
)
.configure_set(SynthizerSets::UpdateProperties.before(SynthizerSets::UpdateState))
.add_systems(
(update_source_playback_state, update_sound_playback_state)
.in_base_set(CoreSet::PostUpdate)