Merge pull request #526 from VirusFree/pr_OpenGEX_textureCoords_init

[OpenGEXImporter] Correctly initialize m_textureCoords array
pull/522/merge
Alexander Gessler 2015-04-05 17:05:16 +02:00
commit 9a7f90220a
1 changed files with 6 additions and 4 deletions

View File

@ -176,10 +176,12 @@ namespace OpenGEX {
USE_ODDLPARSER_NS
OpenGEXImporter::VertexContainer::VertexContainer()
: m_numVerts( 0 )
, m_vertices( NULL )
, m_numNormals( 0 )
, m_normals( NULL ) {
: m_numVerts()
, m_vertices()
, m_numNormals()
, m_normals()
, m_textureCoords()
, m_numUVComps() {
::memset( &m_numUVComps[ 0 ], 0, sizeof( size_t )*AI_MAX_NUMBER_OF_TEXTURECOORDS );
}