浏览代码

Fixed build warnings on MSVC14 x64 in Unreal importer.

Jared Mulconry 8 年之前
父节点
当前提交
f22d78a3d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/UnrealLoader.cpp

+ 1 - 1
code/UnrealLoader.cpp

@@ -333,7 +333,7 @@ void UnrealImporter::InternReadFile( const std::string& pFile,
         std::vector<Unreal::TempMat>::iterator nt = std::find(materials.begin(),materials.end(),mat);
         if (nt == materials.end()) {
             // add material
-            tri.matIndex = materials.size();
+            tri.matIndex = static_cast<unsigned int>(materials.size());
             mat.numFaces = 1;
             materials.push_back(mat);