feat: 动画äix: animation cut problem
This commit is contained in:
parent
9cfd44bec9
commit
0068506cfe
BIN
build/FBX2glTF
BIN
build/FBX2glTF
Binary file not shown.
|
@ -824,7 +824,7 @@ static void ReadAnimations(RawModel& raw, FbxScene* pScene, const GltfOptions& o
|
||||||
size_t totalSizeInBytes = 0;
|
size_t totalSizeInBytes = 0;
|
||||||
|
|
||||||
const int nodeCount = pScene->GetNodeCount();
|
const int nodeCount = pScene->GetNodeCount();
|
||||||
for (int nodeIndex = 0; nodeIndex < nodeCount; nodeIndex++) {
|
for (int nodeIndex = 1; nodeIndex < nodeCount; nodeIndex++) {
|
||||||
FbxNode* pNode = pScene->GetNode(nodeIndex);
|
FbxNode* pNode = pScene->GetNode(nodeIndex);
|
||||||
const FbxAMatrix baseTransform = pNode->EvaluateLocalTransform();
|
const FbxAMatrix baseTransform = pNode->EvaluateLocalTransform();
|
||||||
const FbxVector4 baseTranslation = baseTransform.GetT();
|
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 (optAnimation) {
|
||||||
if (!hasTranslation) {
|
if (!hasTranslation) {
|
||||||
channel.translations.clear();
|
channel.translations.clear();
|
||||||
|
|
Loading…
Reference in New Issue