Explorar o código

eTotalOne is strictly a subset of aNormalize.

Par Winzell %!s(int64=6) %!d(string=hai) anos
pai
achega
a07cabd1ec
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/fbx/FbxSkinningAccess.cpp

+ 3 - 1
src/fbx/FbxSkinningAccess.cpp

@@ -28,7 +28,9 @@ FbxSkinningAccess::FbxSkinningAccess(const FbxMesh* pMesh, FbxScene* pScene, Fbx
         const int* clusterIndices = cluster->GetControlPointIndices();
         const double* clusterWeights = cluster->GetControlPointWeights();
 
-        assert(cluster->GetLinkMode() == FbxCluster::eNormalize);
+        assert(
+            cluster->GetLinkMode() == FbxCluster::eNormalize ||
+            cluster->GetLinkMode() == FbxCluster::eTotalOne);
 
         // Transform link matrix.
         FbxAMatrix transformLinkMatrix;