Skip to content

Commit

Permalink
fix annotations + uncomment ui example chooser
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Dec 2, 2024
1 parent bf467fb commit cd56f83
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ rust.unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(feature, values("dim2", "dim3"))',
] }

[workspace.lints.clippy]
needless_lifetimes = "allow"

[profile.dev]
# Use slightly better optimization by default, as examples otherwise seem laggy.
opt-level = 1
Expand Down
7 changes: 3 additions & 4 deletions bevy_rapier2d/examples/testbed2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod player_movement2;
mod rope_joint2;

use bevy::prelude::*;
use bevy_egui::EguiPlugin;
use bevy_egui::{egui, EguiContexts, EguiPlugin};
use bevy_inspector_egui::quick::WorldInspectorPlugin;
use bevy_rapier2d::prelude::*;

Expand Down Expand Up @@ -224,7 +224,7 @@ fn main() {
.add_systems(
Update,
(
//ui_example_system,
ui_example_system,
change_example.run_if(resource_changed::<ExampleSelected>),
)
.chain(),
Expand Down Expand Up @@ -260,7 +260,7 @@ fn change_example(
) {
next_state.set(examples_available.0[example_selected.0].state);
}
/*

fn ui_example_system(
mut contexts: EguiContexts,
mut current_example: ResMut<ExampleSelected>,
Expand All @@ -284,4 +284,3 @@ fn ui_example_system(
}
});
}
*/
7 changes: 3 additions & 4 deletions bevy_rapier3d/examples/testbed3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ mod ray_casting3;
mod static_trimesh3;

use bevy::prelude::*;
use bevy_egui::EguiPlugin;
use bevy_egui::{egui, EguiContexts, EguiPlugin};
use bevy_inspector_egui::quick::WorldInspectorPlugin;
use bevy_rapier3d::prelude::*;

Expand Down Expand Up @@ -209,7 +209,7 @@ fn main() {
.add_systems(
Update,
(
//ui_example_system,
ui_example_system,
change_example.run_if(resource_changed::<ExampleSelected>),
)
.chain(),
Expand Down Expand Up @@ -245,7 +245,7 @@ fn change_example(
) {
next_state.set(examples_available.0[example_selected.0].state);
}
/*

fn ui_example_system(
mut contexts: EguiContexts,
mut current_example: ResMut<ExampleSelected>,
Expand All @@ -269,4 +269,3 @@ fn ui_example_system(
}
});
}
*/

0 comments on commit cd56f83

Please sign in to comment.