Move source_update after transform propagation.

This commit is contained in:
Nolan Darilek 2021-05-23 11:49:34 -05:00
parent 88fd87227e
commit 097fb6100d

View File

@ -13,6 +13,7 @@ use bevy::{
asset::{AssetLoader, HandleId, LoadContext, LoadedAsset}, asset::{AssetLoader, HandleId, LoadContext, LoadedAsset},
prelude::*, prelude::*,
reflect::TypeUuid, reflect::TypeUuid,
transform::TransformSystem,
utils::BoxedFuture, utils::BoxedFuture,
}; };
use lewton::inside_ogg::OggStreamReader; use lewton::inside_ogg::OggStreamReader;
@ -443,7 +444,12 @@ impl Plugin for OpenAlPlugin {
.insert_resource(GlobalEffects::default()) .insert_resource(GlobalEffects::default())
.register_type::<Listener>() .register_type::<Listener>()
.add_system(buffer_creation.system()) .add_system(buffer_creation.system())
.add_system(source_update.system()) .add_system_to_stage(
CoreStage::PostUpdate,
source_update
.system()
.after(TransformSystem::TransformPropagate),
)
.add_system(listener_update.system()); .add_system(listener_update.system());
} }
} }