Skip to content

Commit

Permalink
fix default plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoskey committed Jun 6, 2024
1 parent f337c1c commit 96c2523
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 6 additions & 0 deletions crates/bevy_internal/src/default_plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ impl PluginGroup for DefaultPlugins {
}
}

#[cfg(feature = "bevy_render_graph")]
{
//TODO: UNCOMMENT THIS FOLLOWING THE MIGRATION
// group = group.add_group(bevy_render_graph::std::DefaultRenderGraphPlugins);
}

#[cfg(feature = "bevy_core_pipeline")]
{
group = group.add(bevy_core_pipeline::CorePipelinePlugin);
Expand Down
6 changes: 5 additions & 1 deletion crates/bevy_render_graph/src/std/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ pub use fullscreen::*;
pub use misc::*;
pub use swap::*;

use crate::core::RenderGraphPlugin;

///A set of minimal plugins that setup assets and behavior for the graph standard library.
pub struct DefaultRenderGraphPlugins;

impl PluginGroup for DefaultRenderGraphPlugins {
fn build(self) -> PluginGroupBuilder {
PluginGroupBuilder::start::<Self>().add(FullscreenPlugin)
PluginGroupBuilder::start::<Self>()
.add(RenderGraphPlugin)
.add(FullscreenPlugin)
}
}

0 comments on commit 96c2523

Please sign in to comment.