Fixed compile error when importing sprite position.

This commit is contained in:
Sam 2021-08-28 21:20:07 -04:00
parent 3ddcde645f
commit 513982ca43
2 changed files with 2 additions and 2 deletions

View File

@ -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")]

View File

@ -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,