2
0
Alexey Medvedev 5 жил өмнө
parent
commit
53990ffa42

+ 5 - 1
code/PostProcessing/SplitByBoneCountProcess.cpp

@@ -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);
+                }   
               }
             }