Skip to content

Commit

Permalink
bevy_pbr2: Fix up scheduling of systems
Browse files Browse the repository at this point in the history
  • Loading branch information
superdump committed Nov 20, 2021
1 parent 5a13b1a commit b1c9349
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pipelined/bevy_pbr2/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,14 @@ impl Plugin for PbrPlugin {
// add as an exclusive system
add_clusters
.exclusive_system()
.label(SimulationLightSystems::AddClusters)
.after(TransformSystem::TransformPropagate),
.label(SimulationLightSystems::AddClusters),
)
.add_system_to_stage(
CoreStage::PostUpdate,
// NOTE: Must come after add_clusters!
update_clusters
.label(SimulationLightSystems::UpdateClusters)
.after(TransformSystem::TransformPropagate)
.after(SimulationLightSystems::AddClusters),
.after(TransformSystem::TransformPropagate),
)
.add_system_to_stage(
CoreStage::PostUpdate,
Expand Down Expand Up @@ -128,7 +126,7 @@ impl Plugin for PbrPlugin {
// _before_ the `prepare_views()` system is run. ideally this becomes a normal system when "stageless" features come out
render::prepare_lights
.exclusive_system()
.label(RenderLightSystems::PrepareClusters),
.label(RenderLightSystems::PrepareLights),
)
.add_system_to_stage(
RenderStage::Prepare,
Expand Down

0 comments on commit b1c9349

Please sign in to comment.