Fixed build warnings on MSVC14 x64 in X file importer.

pull/1083/head
Jared Mulconry 2016-11-27 16:02:21 +11:00
parent cbfbf2a256
commit 7415289649
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ void XFileImporter::CreateMeshes( aiScene* pScene, aiNode* pNode, const std::vec
// or referenced material, it should already have a valid index
if( sourceMesh->mFaceMaterials.size() > 0)
{
mesh->mMaterialIndex = sourceMesh->mMaterials[b].sceneIndex;
mesh->mMaterialIndex = static_cast<unsigned int>(sourceMesh->mMaterials[b].sceneIndex);
} else
{
mesh->mMaterialIndex = 0;