Added initializers in case ply_get_element() doesn't overwrite the values.

This commit is contained in:
Robert Osfield
2016-06-22 09:24:44 +01:00
parent 011d60ec03
commit 03b6cb024e

View File

@@ -221,6 +221,10 @@ void VertexData::readTriangles( PlyFile* file, const int nFaces )
// read the faces, reversing the reading direction if _invertFaces is true
for( int i = 0 ; i < nFaces; i++ )
{
// initialize face values
face.nVertices = 0;
face.vertices = 0;
ply_get_element( file, static_cast< void* >( &face ) );
if (face.vertices)
{