mirror of
https://github.com/lightsoutgames/bevy_openal.git
synced 2024-11-13 21:25:56 +00:00
Move source_update
after transform propagation.
This commit is contained in:
parent
88fd87227e
commit
097fb6100d
|
@ -13,6 +13,7 @@ use bevy::{
|
|||
asset::{AssetLoader, HandleId, LoadContext, LoadedAsset},
|
||||
prelude::*,
|
||||
reflect::TypeUuid,
|
||||
transform::TransformSystem,
|
||||
utils::BoxedFuture,
|
||||
};
|
||||
use lewton::inside_ogg::OggStreamReader;
|
||||
|
@ -443,7 +444,12 @@ impl Plugin for OpenAlPlugin {
|
|||
.insert_resource(GlobalEffects::default())
|
||||
.register_type::<Listener>()
|
||||
.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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user