Skip to content

Commit

Permalink
fix(demo): Fix FrameTimeDiagnosticsPlugin being added twice in featur…
Browse files Browse the repository at this point in the history
…es demo (#364)
  • Loading branch information
MaxCWhitehead committed Mar 31, 2024
1 parent 928a600 commit 428e5bb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions demos/features/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#![allow(clippy::too_many_arguments)]

use bones_bevy_renderer::{
bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin},
BonesBevyRenderer,
};
use bones_bevy_renderer::{bevy::diagnostic::LogDiagnosticsPlugin, BonesBevyRenderer};
use bones_framework::prelude::*;

/// Create our root asset type.
Expand Down Expand Up @@ -103,7 +100,7 @@ fn main() {
renderer
.app()
// We can add our own bevy plugins now
.add_plugins((FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin::default()))
.add_plugins(LogDiagnosticsPlugin::default())
// And run the bevy app
.run()
}
Expand Down

0 comments on commit 428e5bb

Please sign in to comment.