Check for existed bone
parent
3ef46b0edd
commit
53990ffa42
|
@ -217,7 +217,11 @@ void SplitByBoneCountProcess::SplitMesh( const aiMesh* pMesh, std::vector<aiMesh
|
||||||
const std::vector<BoneWeight>& vb = vertexBones[face.mIndices[b]];
|
const std::vector<BoneWeight>& vb = vertexBones[face.mIndices[b]];
|
||||||
for( unsigned int c = 0; c < vb.size(); ++c)
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue