Skip to content

Commit

Permalink
fix cleanup for example debugtoggle
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Dec 5, 2024
1 parent 79f1aba commit 1490159
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bevy_rapier2d/examples/testbed2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ fn main() {
)
.run_if(in_state(Examples::DebugToggle2)),
)
.add_systems(OnExit(Examples::DebugToggle2), cleanup)
//
// rope joint
.add_systems(
Expand Down
1 change: 1 addition & 0 deletions bevy_rapier3d/examples/testbed3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ fn main() {
)
.run_if(in_state(Examples::DebugToggle3)),
)
.add_systems(OnExit(Examples::DebugToggle3), cleanup)
//
// despawn
.init_resource::<despawn3::DespawnResource>()
Expand Down

0 comments on commit 1490159

Please sign in to comment.