diff --git a/crates/bevy_core_pipeline/src/main_pass_driver.rs b/crates/bevy_core_pipeline/src/main_pass_driver.rs index f317b4d0bd..c4347ef14e 100644 --- a/crates/bevy_core_pipeline/src/main_pass_driver.rs +++ b/crates/bevy_core_pipeline/src/main_pass_driver.rs @@ -14,13 +14,6 @@ impl Node for MainPassDriverNode { _render_context: &mut RenderContext, world: &World, ) -> Result<(), NodeRunError> { - if let Some(camera_2d) = world.resource::>().get() { - graph.run_sub_graph( - crate::draw_2d_graph::NAME, - vec![SlotValue::Entity(camera_2d)], - )?; - } - if let Some(camera_3d) = world.resource::>().get() { graph.run_sub_graph( crate::draw_3d_graph::NAME, @@ -28,6 +21,13 @@ impl Node for MainPassDriverNode { )?; } + if let Some(camera_2d) = world.resource::>().get() { + graph.run_sub_graph( + crate::draw_2d_graph::NAME, + vec![SlotValue::Entity(camera_2d)], + )?; + } + Ok(()) } }