Merge branch 'master' into issue_3398

This commit is contained in:
Kim Kulling
2021-08-28 13:56:50 +02:00
committed by GitHub
210 changed files with 1421 additions and 1329 deletions

View File

@@ -468,7 +468,7 @@ void ObjFileImporter::createVertexArray(const ObjFile::Model *pModel,
}
// Copy all vertex colors
if (!pModel->m_VertexColors.empty()) {
if (vertex < pModel->m_VertexColors.size()) {
const aiVector3D &color = pModel->m_VertexColors[vertex];
pMesh->mColors[0][newIndex] = aiColor4D(color.x, color.y, color.z, 1.0);
}