From 097fb6100d89b5fb917f261c0dc2f2dc48ecac4c Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sun, 23 May 2021 11:49:34 -0500 Subject: [PATCH] Move `source_update` after transform propagation. --- src/lib.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 20be7fe..ff6ccf5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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::() .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()); } }