Skip to content

Commit

Permalink
Merge pull request #405 from EmbersArc/403-debug-render-order
Browse files Browse the repository at this point in the history
Order `debug_render_scene` after `TransformSystem::TransformPropagate`
  • Loading branch information
sebcrozet authored Aug 6, 2023
2 parents 3bf22ed + bcd2ae6 commit 27e7c5c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/render/mod.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -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),
);
}
}

Expand Down

0 comments on commit 27e7c5c

Please sign in to comment.