mirror of
https://github.com/lightsoutgames/bevy_openal.git
synced 2024-11-13 21:25:56 +00:00
Move sync after transforms are synced to ensure values are accurate.
This commit is contained in:
parent
7df8ba4e3c
commit
6e8cc4c5ea
15
src/lib.rs
15
src/lib.rs
|
@ -15,6 +15,7 @@ use bevy::{
|
|||
asset::{AssetLoader, HandleId, LoadContext, LoadedAsset},
|
||||
prelude::*,
|
||||
reflect::TypeUuid,
|
||||
transform::TransformSystem,
|
||||
utils::BoxedFuture,
|
||||
};
|
||||
use lewton::inside_ogg::OggStreamReader;
|
||||
|
@ -475,7 +476,17 @@ impl Plugin for OpenAlPlugin {
|
|||
.insert_resource(GlobalEffects::default())
|
||||
.register_type::<Listener>()
|
||||
.add_system(buffer_creation.system())
|
||||
.add_system(source_update.system())
|
||||
.add_system(listener_update.system());
|
||||
.add_system_to_stage(
|
||||
CoreStage::PostUpdate,
|
||||
source_update
|
||||
.system()
|
||||
.after(TransformSystem::TransformPropagate),
|
||||
)
|
||||
.add_system_to_stage(
|
||||
CoreStage::PostUpdate,
|
||||
listener_update
|
||||
.system()
|
||||
.after(TransformSystem::TransformPropagate),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user