Skip to content

Commit

Permalink
fix benchmarks compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Dec 5, 2024
1 parent 536ef0e commit cac6ac0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
22 changes: 1 addition & 21 deletions bevy_rapier_benches3d/src/common.rs
Original file line number Diff line number Diff line change
@@ -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(),
Expand Down
2 changes: 0 additions & 2 deletions src/plugin/systems/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ pub mod tests {
},
scene::ScenePlugin,
time::TimePlugin,
window::WindowPlugin,
};
use rapier::geometry::CollisionEventFlags;
use std::f32::consts::PI;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit cac6ac0

Please sign in to comment.