Fixed build warnings on MSVC14 x64 in the pre-transform vertices post-process.

pull/1083/head
Jared Mulconry 2016-11-20 13:06:50 +11:00
parent 3e08a47d4f
commit f81e28f320
1 changed files with 2 additions and 2 deletions

View File

@ -397,7 +397,7 @@ void PretransformVertices::BuildWCSMeshes(std::vector<aiMesh*>& out, aiMesh** in
out.push_back(ntz); out.push_back(ntz);
node->mMeshes[i] = numIn + out.size() - 1; node->mMeshes[i] = static_cast<unsigned int>(numIn + out.size() - 1);
} }
} }
} }
@ -483,7 +483,7 @@ void PretransformVertices::Execute( aiScene* pScene)
memcpy(npp,pScene->mMeshes,sizeof(aiMesh*)*pScene->mNumMeshes); memcpy(npp,pScene->mMeshes,sizeof(aiMesh*)*pScene->mNumMeshes);
memcpy(npp+pScene->mNumMeshes,&apcOutMeshes[0],sizeof(aiMesh*)*apcOutMeshes.size()); memcpy(npp+pScene->mNumMeshes,&apcOutMeshes[0],sizeof(aiMesh*)*apcOutMeshes.size());
pScene->mNumMeshes += apcOutMeshes.size(); pScene->mNumMeshes += static_cast<unsigned int>(apcOutMeshes.size());
delete[] pScene->mMeshes; pScene->mMeshes = npp; delete[] pScene->mMeshes; pScene->mMeshes = npp;
} }