From 6ee5fdf567aabd8993b00d7e26f85b6697472101 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Sat, 12 Mar 2016 20:55:11 +0100 Subject: [PATCH] OpenGEX: fix review finding. --- code/OpenGEXImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/OpenGEXImporter.cpp b/code/OpenGEXImporter.cpp index 05273d539..a5a7b2db6 100644 --- a/code/OpenGEXImporter.cpp +++ b/code/OpenGEXImporter.cpp @@ -705,7 +705,7 @@ void OpenGEXImporter::handleIndexArrayNode( ODDLParser::DDLNode *node, aiScene * m_currentMesh->mNumVertices = numItems * 3; m_currentMesh->mVertices = new aiVector3D[ m_currentMesh->mNumVertices ]; m_currentMesh->mNormals = new aiVector3D[ m_currentMesh->mNumVertices ]; - m_currentMesh->mNumUVComponents[ 0 ] = numItems * 3; + m_currentMesh->mNumUVComponents[ 0 ] = m_currentMesh->mNumVertices; m_currentMesh->mTextureCoords[ 0 ] = new aiVector3D[ m_currentMesh->mNumVertices ]; unsigned int index( 0 );