mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed compile error when importing sprite position.
This commit is contained in:
parent
c7690958b6
commit
0f7e0b4152
@ -9,7 +9,7 @@ pub struct CollectAnimation;
|
|||||||
|
|
||||||
impl Animation for CollectAnimation {
|
impl Animation for CollectAnimation {
|
||||||
#[allow(clippy::type_complexity)]
|
#[allow(clippy::type_complexity)]
|
||||||
type Dependency<'a> = (Vec3<f32>, f32, Option<StageSection>, Vec3<i32>);
|
type Dependency<'a> = (Vec3<f32>, f32, Option<StageSection>, Vec3<f32>);
|
||||||
type Skeleton = CharacterSkeleton;
|
type Skeleton = CharacterSkeleton;
|
||||||
|
|
||||||
#[cfg(feature = "use-dyn-lib")]
|
#[cfg(feature = "use-dyn-lib")]
|
||||||
|
@ -1148,7 +1148,7 @@ impl FigureMgr {
|
|||||||
};
|
};
|
||||||
anim::character::CollectAnimation::update_skeleton(
|
anim::character::CollectAnimation::update_skeleton(
|
||||||
&target_base,
|
&target_base,
|
||||||
(pos.0, time, Some(s.stage_section), sprite_pos),
|
(pos.0, time, Some(s.stage_section), anim::vek::Vec3::from(sprite_pos.map(|x| x as f32))),
|
||||||
stage_progress,
|
stage_progress,
|
||||||
&mut state_animation_rate,
|
&mut state_animation_rate,
|
||||||
skeleton_attr,
|
skeleton_attr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user