Fixed bug where keyframes of animation clips are not interpolated

This commit is contained in:
Kah Wei 2023-01-18 19:25:27 +08:00
parent b9fcdc43d4
commit 3e23f08aa8
1 changed files with 1 additions and 6 deletions

View File

@ -59,13 +59,8 @@ namespace SHADE
else else
return nextKeyFrame->Data; return nextKeyFrame->Data;
} }
// At the front, so no prior key frames
else if (nextKeyFrame != keyframes.end())
{
return nextKeyFrame->Data;
}
// At the back, so no keyframes will follow // At the back, so no keyframes will follow
else else if (nextKeyFrame == keyframes.end())
{ {
return firstKeyFrame->Data; return firstKeyFrame->Data;
} }