Kaynağa Gözat

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

Jared Mulconry 8 yıl önce
ebeveyn
işleme
4df18f93ea
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      code/LimitBoneWeightsProcess.cpp

+ 2 - 2
code/LimitBoneWeightsProcess.cpp

@@ -129,9 +129,9 @@ void LimitBoneWeightsProcess::ProcessMesh( aiMesh* pMesh)
         std::sort( vit->begin(), vit->end());
 
         // 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());
-        removed += m-vit->size();
+        removed += static_cast<unsigned int>(m-vit->size());
 
         // and renormalize the weights
         float sum = 0.0f;