From bcd2ae62dadf0f6d96bed19385e0739d9a5689ef Mon Sep 17 00:00:00 2001 From: Sven Niederberger Date: Sun, 16 Jul 2023 19:19:41 +0200 Subject: [PATCH] order `debug_render_scene` after `TransformSystem::TransformPropagate` --- src/render/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/render/mod.rs b/src/render/mod.rs index 87c33868..7bc01880 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -1,5 +1,6 @@ use crate::plugin::RapierContext; use bevy::prelude::*; +use bevy::transform::TransformSystem; use rapier::math::{Point, Real}; use rapier::pipeline::{DebugRenderBackend, DebugRenderObject, DebugRenderPipeline}; pub use rapier::pipeline::{DebugRenderMode, DebugRenderStyle}; @@ -86,7 +87,10 @@ impl Plugin for RapierDebugRenderPlugin { enabled: self.enabled, pipeline: DebugRenderPipeline::new(self.style, self.mode), }) - .add_systems(PostUpdate, debug_render_scene); + .add_systems( + PostUpdate, + debug_render_scene.after(TransformSystem::TransformPropagate), + ); } }