mirror of
https://github.com/storytold/bevy-mocap.git
synced 2026-10-17 00:13:05 +00:00
format and clippy
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user