Fixed build warnings on MSVC14 x64 in the limit bone weights post-process.

pull/1083/head
Jared Mulconry 2016-11-20 01:53:47 +11:00
parent 1e2c0279b0
commit 4df18f93ea
1 changed files with 2 additions and 2 deletions

View File

@ -129,9 +129,9 @@ void LimitBoneWeightsProcess::ProcessMesh( aiMesh* pMesh)
std::sort( vit->begin(), vit->end()); std::sort( vit->begin(), vit->end());
// now kill everything beyond the maximum count // now kill everything beyond the maximum count
unsigned int m = vit->size(); unsigned int m = static_cast<unsigned int>(vit->size());
vit->erase( vit->begin() + mMaxWeights, vit->end()); vit->erase( vit->begin() + mMaxWeights, vit->end());
removed += m-vit->size(); removed += static_cast<unsigned int>(m-vit->size());
// and renormalize the weights // and renormalize the weights
float sum = 0.0f; float sum = 0.0f;