Skip to content

Commit

Permalink
Merge pull request #23 from team-nullptr/fix/debug-only-inspector
Browse files Browse the repository at this point in the history
made the worldinspectorplugin debug-only
  • Loading branch information
Pietrek14 authored Mar 5, 2023
2 parents 3ba88a3 + d1569ee commit 91f19d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ impl Plugin for ArkanoidPlugin {
}))
.add_plugin(RapierPhysicsPlugin::<NoUserData>::pixels_per_meter(4.))
.add_plugin(AudioPlugin)
.add_plugin(WorldInspectorPlugin)
.add_plugin(camera::CameraPlugin)
.add_plugin(actions::ActionsPlugin)
.add_plugin(cursor::CursorPlugin)
Expand All @@ -65,5 +64,10 @@ impl Plugin for ArkanoidPlugin {
.add_plugin(ui::UiPlugin)
.add_plugin(block::BlockPlugin)
.add_state(GameState::Loading);

// Debug-only plugins
if cfg!(debug_assertions) {
app.add_plugin(WorldInspectorPlugin);
}
}
}

0 comments on commit 91f19d4

Please sign in to comment.