From cac6ac017e08d80a08701b2e733dd07a117b8b52 Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Mon, 2 Dec 2024 17:10:33 +0100 Subject: [PATCH] fix benchmarks compile --- bevy_rapier_benches3d/src/common.rs | 22 +--------------------- src/plugin/systems/mod.rs | 2 -- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/bevy_rapier_benches3d/src/common.rs b/bevy_rapier_benches3d/src/common.rs index 9a2f5f6f..a5cb805c 100644 --- a/bevy_rapier_benches3d/src/common.rs +++ b/bevy_rapier_benches3d/src/common.rs @@ -1,31 +1,11 @@ -use bevy::{ - app::PluginsState, - prelude::*, - render::{ - settings::{RenderCreation, WgpuSettings}, - RenderPlugin, - }, - scene::ScenePlugin, - time::TimeUpdateStrategy, -}; +use bevy::{app::PluginsState, prelude::*, time::TimeUpdateStrategy}; use bevy_rapier3d::prelude::*; pub fn default_app() -> App { let mut app = App::new(); app.add_plugins(( - WindowPlugin::default(), MinimalPlugins, - AssetPlugin::default(), - ScenePlugin, - RenderPlugin { - render_creation: RenderCreation::Automatic(WgpuSettings { - backends: None, - ..Default::default() - }), - ..Default::default() - }, - ImagePlugin::default(), HierarchyPlugin, TransformPlugin, RapierPhysicsPlugin::<()>::default(), diff --git a/src/plugin/systems/mod.rs b/src/plugin/systems/mod.rs index 9d770ddf..d070a987 100644 --- a/src/plugin/systems/mod.rs +++ b/src/plugin/systems/mod.rs @@ -80,7 +80,6 @@ pub mod tests { }, scene::ScenePlugin, time::TimePlugin, - window::WindowPlugin, }; use rapier::geometry::CollisionEventFlags; use std::f32::consts::PI; @@ -317,7 +316,6 @@ pub mod tests { impl Plugin for HeadlessRenderPlugin { fn build(&self, app: &mut App) { app.add_plugins(( - WindowPlugin::default(), AssetPlugin::default(), ScenePlugin, RenderPlugin {