From 66210a6aca9ca97dbc9b4f4916dea851f91c6b6d Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 11 Feb 2015 19:21:27 +0000 Subject: [PATCH] Fixed warning git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14689 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgPlugins/ply/vertexData.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgPlugins/ply/vertexData.cpp b/src/osgPlugins/ply/vertexData.cpp index c8718b1a8..6ff6d76fb 100644 --- a/src/osgPlugins/ply/vertexData.cpp +++ b/src/osgPlugins/ply/vertexData.cpp @@ -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 )