Build fixes for new deprecated osg::Geometry functions

This commit is contained in:
Robert Osfield
2013-06-19 10:56:31 +00:00
parent 297a8a221b
commit 744960bbf2
13 changed files with 23 additions and 21 deletions

View File

@@ -1,3 +1,4 @@
#include <osg/Config>
#ifndef OSG_USE_DEPRECATED_GEOMETRY_METHODS
#define OSG_USE_DEPRECATED_GEOMETRY_METHODS 1
#endif

View File

@@ -98,7 +98,7 @@ ADD_ARRAYDATA_FUNCTIONS( FogCoordData, FogCoordArray )
for ( osg::Geometry::ArrayList::const_iterator itr=LISTNAME.begin(); \
itr!=LISTNAME.end(); ++itr ) { \
os << os.PROPERTY("Data") << os.BEGIN_BRACKET << std::endl; \
writeArray(os, *itr); os << os.END_BRACKET << std::endl; \
writeArray(os, itr->get()); os << os.END_BRACKET << std::endl; \
} \
os << os.END_BRACKET << std::endl; \
return true; \