OpenGEX: use correct number of uv-coordinates for texture coordinates.

pull/821/head
Kim Kulling 2016-03-13 20:22:36 +01:00
parent 193f6059cf
commit 7e9fe2d654
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ void OpenGEXImporter::handleIndexArrayNode( ODDLParser::DDLNode *node, aiScene *
m_currentMesh->mNumVertices = numItems * 3; m_currentMesh->mNumVertices = numItems * 3;
m_currentMesh->mVertices = new aiVector3D[ m_currentMesh->mNumVertices ]; m_currentMesh->mVertices = new aiVector3D[ m_currentMesh->mNumVertices ];
m_currentMesh->mNormals = new aiVector3D[ m_currentMesh->mNumVertices ]; m_currentMesh->mNormals = new aiVector3D[ m_currentMesh->mNumVertices ];
m_currentMesh->mNumUVComponents[ 0 ] = m_currentMesh->mNumVertices; m_currentMesh->mNumUVComponents[ 0 ] = 3;
m_currentMesh->mTextureCoords[ 0 ] = new aiVector3D[ m_currentMesh->mNumVertices ]; m_currentMesh->mTextureCoords[ 0 ] = new aiVector3D[ m_currentMesh->mNumVertices ];
unsigned int index( 0 ); unsigned int index( 0 );