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
3ddcde645f
commit
513982ca43
@ -9,7 +9,7 @@ pub struct CollectAnimation;
|
||||
|
||||
impl Animation for CollectAnimation {
|
||||
#[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;
|
||||
|
||||
#[cfg(feature = "use-dyn-lib")]
|
||||
|
@ -1148,7 +1148,7 @@ impl FigureMgr {
|
||||
};
|
||||
anim::character::CollectAnimation::update_skeleton(
|
||||
&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,
|
||||
&mut state_animation_rate,
|
||||
skeleton_attr,
|
||||
|
Loading…
Reference in New Issue
Block a user