Forráskód Böngészése

eTotalOne is strictly a subset of aNormalize.

Par Winzell 6 éve
szülő
commit
a07cabd1ec
1 módosított fájl, 3 hozzáadás és 1 törlés
  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 int* clusterIndices = cluster->GetControlPointIndices();
         const double* clusterWeights = cluster->GetControlPointWeights();
         const double* clusterWeights = cluster->GetControlPointWeights();
 
 
-        assert(cluster->GetLinkMode() == FbxCluster::eNormalize);
+        assert(
+            cluster->GetLinkMode() == FbxCluster::eNormalize ||
+            cluster->GetLinkMode() == FbxCluster::eTotalOne);
 
 
         // Transform link matrix.
         // Transform link matrix.
         FbxAMatrix transformLinkMatrix;
         FbxAMatrix transformLinkMatrix;