diff --git a/build/FBX2glTF b/build/FBX2glTF index fbb9882..a810e15 100755 Binary files a/build/FBX2glTF and b/build/FBX2glTF differ diff --git a/src/fbx/Fbx2Raw.cpp b/src/fbx/Fbx2Raw.cpp index f7a8026..ca85f0d 100644 --- a/src/fbx/Fbx2Raw.cpp +++ b/src/fbx/Fbx2Raw.cpp @@ -824,7 +824,7 @@ static void ReadAnimations(RawModel& raw, FbxScene* pScene, const GltfOptions& o size_t totalSizeInBytes = 0; const int nodeCount = pScene->GetNodeCount(); - for (int nodeIndex = 0; nodeIndex < nodeCount; nodeIndex++) { + for (int nodeIndex = 1; nodeIndex < nodeCount; nodeIndex++) { FbxNode* pNode = pScene->GetNode(nodeIndex); const FbxAMatrix baseTransform = pNode->EvaluateLocalTransform(); const FbxVector4 baseTranslation = baseTransform.GetT(); @@ -937,7 +937,7 @@ static void ReadAnimations(RawModel& raw, FbxScene* pScene, const GltfOptions& o } } - if (hasTranslation || hasRotation || hasScale || hasMorphs) { + if (!optAnimation || hasTranslation || hasRotation || hasScale || hasMorphs) { if (optAnimation) { if (!hasTranslation) { channel.translations.clear();