OpenGEX: Replace std::copy with explicit loop

pull/1775/head
Turo Lamminen 2018-02-06 20:08:49 +02:00
parent aa434b9566
commit 5ce9ece0cc
1 changed files with 3 additions and 1 deletions

View File

@ -1137,7 +1137,9 @@ void OpenGEXImporter::copyMeshes( aiScene *pScene ) {
pScene->mNumMeshes = static_cast<unsigned int>(m_meshCache.size());
pScene->mMeshes = new aiMesh*[ pScene->mNumMeshes ];
std::copy( m_meshCache.begin(), m_meshCache.end(), pScene->mMeshes );
for (unsigned int i = 0; i < pScene->mNumMeshes; i++) {
pScene->mMeshes[i] = m_meshCache[i];
}
}
//------------------------------------------------------------------------------------------------