From 7b117ada29029961d8a9d51368299a4af24d01ab Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 18 Nov 2005 10:03:11 +0000 Subject: [PATCH] From Andrew Reyonolds : changed the endian conversion code to work on a temporary rather then on a flt structure to prevent repeated conversion of the same value, something that led to eroneously large light point string sizes. --- src/osgPlugins/flt/flt2osg.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/osgPlugins/flt/flt2osg.cpp b/src/osgPlugins/flt/flt2osg.cpp index cb7b00806..563e164fa 100644 --- a/src/osgPlugins/flt/flt2osg.cpp +++ b/src/osgPlugins/flt/flt2osg.cpp @@ -2122,8 +2122,14 @@ int ConvertFromFLT::addVertices(GeoSetBuilder* pBuilder, osg::Group& osgParent, { // This will be for replicated verticies SReplicate *pSReplicate = (SReplicate *)(child->getData()) ; +#if 1 + int16 temp = pSReplicate->iNumber; + ENDIAN(temp); + num_replicate = temp ; +#else ENDIAN(pSReplicate->iNumber) ; num_replicate = pSReplicate->iNumber ; +#endif DPRINT(stderr, " ** addVerticies: Got Replicate: %d times\n", num_replicate) ; got_replicate = 1 ; }