Removed files as they all have the incorrectly have the execution bit enabled, will add back in with this fixed.
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
#include <osg/Shape>
|
||||
#include <osgDB/ObjectWrapper>
|
||||
#include <osgDB/InputStream>
|
||||
#include <osgDB/OutputStream>
|
||||
|
||||
#define ARRAY_FUNCTIONS( PROP, TYPE ) \
|
||||
static bool check##PROP(const osg::TriangleMesh& shape) { \
|
||||
return shape.get##PROP()!=NULL; \
|
||||
} \
|
||||
static bool read##PROP(osgDB::InputStream& is, osg::TriangleMesh& shape) { \
|
||||
shape.set##PROP( dynamic_cast<TYPE*>(is.readArray()) ); \
|
||||
return true; \
|
||||
} \
|
||||
static bool write##PROP(osgDB::OutputStream& os, const osg::TriangleMesh& shape) { \
|
||||
os << shape.get##PROP(); \
|
||||
return true; \
|
||||
}
|
||||
|
||||
ARRAY_FUNCTIONS( Vertices, osg::Vec3Array )
|
||||
ARRAY_FUNCTIONS( Indices, osg::IndexArray )
|
||||
|
||||
REGISTER_OBJECT_WRAPPER( TriangleMesh,
|
||||
new osg::TriangleMesh,
|
||||
osg::TriangleMesh,
|
||||
"osg::Object osg::Shape osg::TriangleMesh" )
|
||||
{
|
||||
ADD_USER_SERIALIZER( Vertices ); // _vertices
|
||||
ADD_USER_SERIALIZER( Indices ); // _indices
|
||||
}
|
||||
Reference in New Issue
Block a user