From 286efb560984988b9e99c8a9228ae165c413c43d Mon Sep 17 00:00:00 2001 From: Luke Street Date: Fri, 2 Apr 2021 10:50:20 -0400 Subject: [PATCH] CFBStreamedPairOfTotals: Fix end keyframe logic --- Runtime/Character/CFBStreamedAnimReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Character/CFBStreamedAnimReader.cpp b/Runtime/Character/CFBStreamedAnimReader.cpp index 8281ff5f1..efed31535 100644 --- a/Runtime/Character/CFBStreamedAnimReader.cpp +++ b/Runtime/Character/CFBStreamedAnimReader.cpp @@ -219,8 +219,8 @@ void CFBStreamedPairOfTotals::SetTime(CBitLevelLoader& loader, const CCharAnimTi } if (prior != -1 && next == -1) { - next = cur; - x78_t = (time - priorTime) / (curTime - priorTime); + next = prior; + x78_t = 1.f; } if (next != -1) { while (u32(next) > Next().x1c_curKey) {