set->unordered_set;unsigned int for iteration

pull/2543/head
thomasbiang 2019-07-10 09:51:20 -07:00 committed by ywang
parent 9210ff37f2
commit c889699d58
1 changed files with 3 additions and 3 deletions

View File

@ -1619,11 +1619,11 @@ void FBXExporter::WriteObjects ()
std::unordered_set<const aiNode*> limbnodes;
//actual bone nodes in fbx, without parenting-up
std::set<std::string> setAllBoneNamesInScene;
for(int m = 0; m < mScene->mNumMeshes; ++ m)
std::unordered_set<std::string> setAllBoneNamesInScene;
for(unsigned int m = 0; m < mScene->mNumMeshes; ++ m)
{
aiMesh* pMesh = mScene->mMeshes[m];
for(int b = 0; b < pMesh->mNumBones; ++ b)
for(unsigned int b = 0; b < pMesh->mNumBones; ++ b)
setAllBoneNamesInScene.insert(pMesh->mBones[b]->mName.data);
}
aiMatrix4x4 mxTransIdentity;