From 9853625ba1b3771a8f47174f63fc3cc2f0811f81 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Tue, 4 Jun 2019 22:48:25 -0700 Subject: [PATCH] Fix logic error. Thanks @C0lumbo. This fixes #202. --- src/fbx/Fbx2Raw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fbx/Fbx2Raw.cpp b/src/fbx/Fbx2Raw.cpp index 2bc8e80..ed74f2c 100644 --- a/src/fbx/Fbx2Raw.cpp +++ b/src/fbx/Fbx2Raw.cpp @@ -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; } }