diff --git a/code/ProcessHelper.cpp b/code/ProcessHelper.cpp index 4bfbbd5a3..501d44484 100644 --- a/code/ProcessHelper.cpp +++ b/code/ProcessHelper.cpp @@ -308,7 +308,7 @@ aiMesh* MakeSubmesh(const aiMesh *pMesh, const std::vector &subMes for(unsigned int j=0;j(numSubVerts++); } } } @@ -320,8 +320,8 @@ aiMesh* MakeSubmesh(const aiMesh *pMesh, const std::vector &subMes // create all the arrays for this mesh if the old mesh contained them - oMesh->mNumFaces = subMeshFaces.size(); - oMesh->mNumVertices = numSubVerts; + oMesh->mNumFaces = static_cast(subMeshFaces.size()); + oMesh->mNumVertices = static_cast(numSubVerts); oMesh->mVertices = new aiVector3D[numSubVerts]; if( pMesh->HasNormals() ) { oMesh->mNormals = new aiVector3D[numSubVerts]; @@ -332,12 +332,12 @@ aiMesh* MakeSubmesh(const aiMesh *pMesh, const std::vector &subMes oMesh->mBitangents = new aiVector3D[numSubVerts]; } - for( size_t a = 0; pMesh->HasTextureCoords( a) ; ++a ) { + for( size_t a = 0; pMesh->HasTextureCoords(static_cast(a)) ; ++a ) { oMesh->mTextureCoords[a] = new aiVector3D[numSubVerts]; oMesh->mNumUVComponents[a] = pMesh->mNumUVComponents[a]; } - for( size_t a = 0; pMesh->HasVertexColors( a); ++a ) { + for( size_t a = 0; pMesh->HasVertexColors( static_cast(a)); ++a ) { oMesh->mColors[a] = new aiColor4D[numSubVerts]; }