Fix logic error.

Thanks @C0lumbo. This fixes #202.
This commit is contained in:
Par Winzell 2019-06-04 22:48:25 -07:00
parent 3afd9f3266
commit 9853625ba1
1 changed files with 1 additions and 1 deletions

View File

@ -778,7 +778,7 @@ static void ReadAnimations(RawModel& raw, FbxScene* pScene, const GltfOptions& o
if (firstFrameIndex == -1 || firstCurveFrame < firstFrameIndex) {
firstFrameIndex = firstCurveFrame;
}
if (lastFrameIndex == -1 || lastCurveFrame < lastFrameIndex) {
if (lastFrameIndex == -1 || lastCurveFrame > lastFrameIndex) {
lastFrameIndex = lastCurveFrame;
}
}