Ver Fonte

Changed AI_LMW_MAX_WEIGHTS*2 to 8 which is same thing.

napina há 5 anos atrás
pai
commit
f0243cc7f3
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      code/PostProcessing/LimitBoneWeightsProcess.cpp

+ 1 - 1
code/PostProcessing/LimitBoneWeightsProcess.cpp

@@ -103,7 +103,7 @@ void LimitBoneWeightsProcess::ProcessMesh(aiMesh* pMesh)
         return;
 
     // collect all bone weights per vertex
-    typedef SmallVector<Weight,AI_LMW_MAX_WEIGHTS*2> VertexWeightArray;
+    typedef SmallVector<Weight,8> VertexWeightArray;
     typedef std::vector<VertexWeightArray> WeightsPerVertex;
     WeightsPerVertex vertexWeights(pMesh->mNumVertices);
     unsigned int maxVertexWeights = 0;