Changed AI_LMW_MAX_WEIGHTS*2 to 8 which is same thing.

pull/3079/head
napina 2020-03-22 15:58:12 +02:00
parent d5d30c898b
commit f0243cc7f3
1 changed files with 1 additions and 1 deletions

View File

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