set->unordered_set;unsigned int for iteration

pull/2572/head
thomasbiang 2019-07-10 09:51:20 -07:00
parent 6b5e0a9914
commit d7773dcfba
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;