mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
rebase
This commit is contained in:
parent
aea0d0002b
commit
e9bbe0e800
@ -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"),
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user