mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
readded cidle
This commit is contained in:
parent
bec942753e
commit
f8d0b1040a
@ -41,9 +41,9 @@ impl<'a> System<'a> for Sys {
|
||||
//(true, Stand, Wield { .. }) => Animation::Cidle,
|
||||
//(true, Run, Wield { .. }) => Animation::Crun,
|
||||
//(false, Jump, Wield { .. }) => Animation::Cjump,
|
||||
(_, Glide, Idle) => Animation::Gliding,
|
||||
(_, _, Attack { .. }) => Animation::Attack,
|
||||
(_, _, Block { .. }) => Animation::Block,
|
||||
//(_, Glide, Idle) => Animation::Gliding,
|
||||
//(_, _, Attack { .. }) => Animation::Attack,
|
||||
//(_, _, Block { .. }) => Animation::Block,
|
||||
// Impossible animation (Caused by missing animations or syncing delays)
|
||||
_ => Animation::Gliding,
|
||||
};
|
||||
|
@ -736,10 +736,9 @@ impl FigureMgr {
|
||||
};
|
||||
|
||||
let target_bones = match (&character.movement, &character.action) {
|
||||
|
||||
(_, Wield { .. }) => anim::character::CrunAnimation::update_skeleton(
|
||||
(Stand, Wield { .. }) => anim::character::CidleAnimation::update_skeleton(
|
||||
&target_base,
|
||||
(vel.0.magnitude(), time),
|
||||
time,
|
||||
time_since_action_change,
|
||||
skeleton_attr,
|
||||
),
|
||||
@ -749,6 +748,12 @@ impl FigureMgr {
|
||||
time_since_action_change,
|
||||
skeleton_attr,
|
||||
),
|
||||
(_, Wield { .. }) => anim::character::CrunAnimation::update_skeleton(
|
||||
&target_base,
|
||||
(vel.0.magnitude(), time),
|
||||
time_since_action_change,
|
||||
skeleton_attr,
|
||||
),
|
||||
(_, Block { .. }) => anim::character::BlockAnimation::update_skeleton(
|
||||
&target_base,
|
||||
time,
|
||||
|
Loading…
Reference in New Issue
Block a user