Check for existed bone

pull/3105/head
Alexey Medvedev 2020-03-31 14:18:51 -07:00
parent 3ef46b0edd
commit 53990ffa42
1 changed files with 5 additions and 1 deletions

View File

@ -217,7 +217,11 @@ void SplitByBoneCountProcess::SplitMesh( const aiMesh* pMesh, std::vector<aiMesh
const std::vector<BoneWeight>& vb = vertexBones[face.mIndices[b]];
for( unsigned int c = 0; c < vb.size(); ++c)
{
newBonesAtCurrentFace.insert(vb[c].first);
unsigned int boneIndex = vb[c].first;
if( !isBoneUsed[boneIndex] )
{
newBonesAtCurrentFace.insert(boneIndex);
}
}
}