Skip to content

Commit

Permalink
fix: more appropriate variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
simbleau committed Feb 19, 2025
1 parent 236a7c1 commit 33a9d46
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/diagnostics/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ fn setup(mut commands: Commands) {
top: Val::Px(10.0),
..default()
},
SceneCounterText,
DiagnosticsText,
));
}

#[derive(Component)]
struct SceneCounterText;
struct DiagnosticsText;

fn simple_animation(mut query: Query<(&mut Transform, &mut VelloScene)>, time: Res<Time>) {
let sin_time = time.elapsed_secs().sin().mul_add(0.5, 0.5);
Expand Down Expand Up @@ -76,7 +76,7 @@ fn simple_animation(mut query: Query<(&mut Transform, &mut VelloScene)>, time: R

fn update_scene_count_ui(
diagnostics: Res<DiagnosticsStore>,
mut text: Single<&mut Text, With<SceneCounterText>>,
mut text: Single<&mut Text, With<DiagnosticsText>>,
) {
let Some(scenes) = diagnostics.get(&VelloEntityCountDiagnosticsPlugin::SCENE_COUNT) else {
return;
Expand Down

0 comments on commit 33a9d46

Please sign in to comment.