format and clippy

This commit is contained in:
Lee-Orr
2024-02-08 19:24:10 -05:00
parent e1d53e25d9
commit 9de7202764
2 changed files with 39 additions and 11 deletions
+15 -4
View File
@@ -51,12 +51,23 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
});
}
fn setup_animation(mut commands: Commands, asset_server: Res<AssetServer>, mut players: Query<Entity, (With<MorphWeights>, Without<AnimationRunning>)>) {
fn setup_animation(
mut commands: Commands,
asset_server: Res<AssetServer>,
mut players: Query<Entity, (With<MorphWeights>, Without<AnimationRunning>)>,
) {
for entity in &mut players {
let handle = asset_server.load_with_settings("20240205_shapekey_BevyImplementationFaceCap_5/fake_test.morph_anim.csv", |s: &mut CSVAnimationLoaderSettings| { s.0.parts = vec![Name::new("pascal_Head")]; });
let handle = asset_server.load_with_settings(
"20240205_shapekey_BevyImplementationFaceCap_5/fake_test.morph_anim.csv",
|s: &mut CSVAnimationLoaderSettings| {
s.0.parts = vec![Name::new("pascal_Head")];
},
);
let mut player = AnimationPlayer::default();
player.play(handle.clone()).repeat();
commands.entity(entity).insert((AnimationRunning(handle), player));
commands
.entity(entity)
.insert((AnimationRunning(handle), player));
}
}