This commit is contained in:
jshipsey 2019-06-30 17:57:19 -04:00
parent aea0d0002b
commit e9bbe0e800
2 changed files with 4 additions and 5 deletions

View File

@ -20,8 +20,6 @@ impl<'a> System<'a> for Sys {
warn!("{}", message);
Animation::Idle
}
<<<<<<< HEAD
let animation = match (a.on_ground, a.moving, a.attacking, a.gliding, a.rolling) {
(_, _, true, true, _) => impossible_animation("Attack while gliding"),
(_, _, true, _, true) => impossible_animation("Roll while attacking"),

View File

@ -581,7 +581,6 @@ impl FigureMgr {
})
.unwrap_or(Rgba::broadcast(1.0));
<<<<<<< HEAD
let skeleton_attr = &self
.model_cache
.get_or_create_model(renderer, *body, tick)
@ -613,7 +612,8 @@ impl FigureMgr {
animation_info.time,
skeleton_attr,
),
comp::Animation::Attack => anim::character::AttackAnimation::update_skeleton(
comp::Animation::Attack => {
anim::character::AttackAnimation::update_skeleton(
state.skeleton_mut(),
time,
animation_info.time,
@ -644,7 +644,8 @@ impl FigureMgr {
animation_info.time,
skeleton_attr,
),
comp::Animation::Gliding => anim::character::GlidingAnimation::update_skeleton(
comp::Animation::Gliding => {
anim::character::GlidingAnimation::update_skeleton(
state.skeleton_mut(),
(vel.0.magnitude(), time),
animation_info.time,