Fixed warning

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14689 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2015-02-11 19:21:27 +00:00
parent 9fa3defb0e
commit 66210a6aca

View File

@ -401,10 +401,12 @@ osg::Node* VertexData::readPlyFile( const char* filename, const bool ignoreColor
// Read Triangles
readTriangles( file, nElems );
// Check whether all face elements read or not
#if DEBUG
unsigned int nbTriangles = (_triangles.valid() ? _triangles->size() / 3 : 0) ;
unsigned int nbQuads = (_quads.valid() ? _quads->size() / 4 : 0 );
MESHASSERT( (nbTriangles + nbQuads) == static_cast< size_t >( nElems ) );
#endif
result = true;
}
catch( exception& e )