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:
@@ -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 ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user