Skip to content

Commit

Permalink
Fix minimal plugins in ci (bevyengine#12370)
Browse files Browse the repository at this point in the history
# Objective

- bevyengine#11341 broke running code using `MinimalPlugins` in CI

## Solution

- include `DevToolsPlugin` in `MinimalPlugins`
  • Loading branch information
mockersf authored and spectria-limina committed Mar 9, 2024
1 parent 89816ae commit ec88110
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions crates/bevy_internal/src/default_plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ impl Plugin for IgnoreAmbiguitiesPlugin {
/// * [`FrameCountPlugin`](crate::core::FrameCountPlugin)
/// * [`TimePlugin`](crate::time::TimePlugin)
/// * [`ScheduleRunnerPlugin`](crate::app::ScheduleRunnerPlugin)
/// * [`DevToolsPlugin`](crate::dev_tools::DevToolsPlugin) - with feature `bevy_dev_tools`
///
/// This group of plugins is intended for use for minimal, *headless* programs –
/// see the [*Bevy* *headless* example](https://github.com/bevyengine/bevy/blob/main/examples/app/headless.rs)
Expand All @@ -205,11 +206,17 @@ pub struct MinimalPlugins;

impl PluginGroup for MinimalPlugins {
fn build(self) -> PluginGroupBuilder {
PluginGroupBuilder::start::<Self>()
let mut group = PluginGroupBuilder::start::<Self>();
group = group
.add(bevy_core::TaskPoolPlugin::default())
.add(bevy_core::TypeRegistrationPlugin)
.add(bevy_core::FrameCountPlugin)
.add(bevy_time::TimePlugin)
.add(bevy_app::ScheduleRunnerPlugin::default())
.add(bevy_app::ScheduleRunnerPlugin::default());
#[cfg(feature = "bevy_dev_tools")]
{
group = group.add(bevy_dev_tools::DevToolsPlugin);
}
group
}
}

0 comments on commit ec88110

Please sign in to comment.