Warning fixes
This commit is contained in:
@@ -33,6 +33,9 @@ WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
||||
#ifndef __PLY_H__
|
||||
#define __PLY_H__
|
||||
|
||||
// include to quieten down silly VS warnings
|
||||
#include <osg/Export>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
/** note, derived from Equalizer LGPL source.*/
|
||||
|
||||
#include "typedefs.h"
|
||||
|
||||
#include "vertexData.h"
|
||||
#include "ply.h"
|
||||
|
||||
#include <cstdlib>
|
||||
#include <algorithm>
|
||||
#include <osg/Geometry>
|
||||
@@ -249,7 +249,9 @@ osg::Node* VertexData::readPlyFile( const char* filename, const bool ignoreColor
|
||||
MESHASSERT( _vertices->size() == static_cast< size_t >( nElems ) );
|
||||
// Check all color elements read or not
|
||||
if( hasColors && !ignoreColors )
|
||||
{
|
||||
MESHASSERT( _colors->size() == static_cast< size_t >( nElems ) );
|
||||
}
|
||||
}
|
||||
catch( exception& e )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user