Преглед на файлове

Fixed build warnings on MSVC14 x64 in X file importer.

Jared Mulconry преди 8 години
родител
ревизия
7415289649
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      code/XFileImporter.cpp

+ 1 - 1
code/XFileImporter.cpp

@@ -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;