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.
This commit is contained in:
Robert Osfield
2005-11-18 10:03:11 +00:00
parent 9c93332c03
commit 7b117ada29

View File

@@ -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 ;
}