From 0baedcf55cca4702a78122f5d6c185b6ac7f6913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Thu, 7 Mar 2024 23:24:52 +0100 Subject: [PATCH] Fix minimal plugins in ci (#12370) # Objective - #11341 broke running code using `MinimalPlugins` in CI ## Solution - include `DevToolsPlugin` in `MinimalPlugins` --- crates/bevy_internal/src/default_plugins.rs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/crates/bevy_internal/src/default_plugins.rs b/crates/bevy_internal/src/default_plugins.rs index 08d68b0fdc..dcea35be33 100644 --- a/crates/bevy_internal/src/default_plugins.rs +++ b/crates/bevy_internal/src/default_plugins.rs @@ -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) @@ -205,11 +206,17 @@ pub struct MinimalPlugins; impl PluginGroup for MinimalPlugins { fn build(self) -> PluginGroupBuilder { - PluginGroupBuilder::start::() + let mut group = PluginGroupBuilder::start::(); + 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 } }