Fix minimal plugins in ci (#12370)

# Objective

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

## Solution

- include `DevToolsPlugin` in `MinimalPlugins`
This commit is contained in:
François 2024-03-07 23:24:52 +01:00 committed by GitHub
parent 432a4f1d85
commit 0baedcf55c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -192,6 +192,7 @@ impl Plugin for IgnoreAmbiguitiesPlugin {
/// * [`FrameCountPlugin`](crate::core::FrameCountPlugin) /// * [`FrameCountPlugin`](crate::core::FrameCountPlugin)
/// * [`TimePlugin`](crate::time::TimePlugin) /// * [`TimePlugin`](crate::time::TimePlugin)
/// * [`ScheduleRunnerPlugin`](crate::app::ScheduleRunnerPlugin) /// * [`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 /// 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) /// see the [*Bevy* *headless* example](https://github.com/bevyengine/bevy/blob/main/examples/app/headless.rs)
@ -205,11 +206,17 @@ pub struct MinimalPlugins;
impl PluginGroup for MinimalPlugins { impl PluginGroup for MinimalPlugins {
fn build(self) -> PluginGroupBuilder { fn build(self) -> PluginGroupBuilder {
PluginGroupBuilder::start::<Self>() let mut group = PluginGroupBuilder::start::<Self>();
group = group
.add(bevy_core::TaskPoolPlugin::default()) .add(bevy_core::TaskPoolPlugin::default())
.add(bevy_core::TypeRegistrationPlugin) .add(bevy_core::TypeRegistrationPlugin)
.add(bevy_core::FrameCountPlugin) .add(bevy_core::FrameCountPlugin)
.add(bevy_time::TimePlugin) .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
} }
} }