Skip to content

Commit 4c09495

Browse files
committed
No underscore for private functions
1 parent 6383dc5 commit 4c09495

File tree

1 file changed

+7
-7
lines changed
  • crates/bevy_animation/src

1 file changed

+7
-7
lines changed

crates/bevy_animation/src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ pub fn animation_player(
334334
mut animation_players: Query<(Entity, Option<&Parent>, &mut AnimationPlayer)>,
335335
) {
336336
animation_players.par_for_each_mut(10, |(root, maybe_parent, mut player)| {
337-
_update_transitions(&mut player, &time);
338-
_run_animation_player(
337+
update_transitions(&mut player, &time);
338+
run_animation_player(
339339
root,
340340
player,
341341
&time,
@@ -349,7 +349,7 @@ pub fn animation_player(
349349
});
350350
}
351351

352-
fn _run_animation_player(
352+
fn run_animation_player(
353353
root: Entity,
354354
mut player: Mut<AnimationPlayer>,
355355
time: &Time,
@@ -368,7 +368,7 @@ fn _run_animation_player(
368368
}
369369

370370
// Apply the main animation
371-
_apply_animation(
371+
apply_animation(
372372
1.0,
373373
&mut player.animation,
374374
paused,
@@ -389,7 +389,7 @@ fn _run_animation_player(
389389
..
390390
} in &mut player.transitions
391391
{
392-
_apply_animation(
392+
apply_animation(
393393
*current_weight,
394394
animation,
395395
paused,
@@ -406,7 +406,7 @@ fn _run_animation_player(
406406
}
407407

408408
#[allow(clippy::too_many_arguments)]
409-
fn _apply_animation(
409+
fn apply_animation(
410410
weight: f32,
411411
animation: &mut PlayingAnimation,
412412
paused: bool,
@@ -520,7 +520,7 @@ fn _apply_animation(
520520
}
521521
}
522522

523-
fn _update_transitions(player: &mut AnimationPlayer, time: &Time) {
523+
fn update_transitions(player: &mut AnimationPlayer, time: &Time) {
524524
player.transitions.retain_mut(|animation| {
525525
animation.current_weight -= animation.weight_decline_per_sec * time.delta_seconds();
526526
animation.current_weight > 0.0

0 commit comments

Comments
 (0)