Added ability for OSG serializers to get the file version number when writing out via the OutputStream object

This commit is contained in:
Robert Osfield
2017-06-19 12:04:03 +01:00
parent da7a0968be
commit 9f3533632a
2 changed files with 9 additions and 1 deletions

View File

@@ -706,6 +706,8 @@ void OutputStream::start( OutputIterator* outIterator, OutputStream::WriteType t
throwException( "OutputStream: Null stream specified." );
if ( getException() ) return;
_out->setOutputStream(this);
if ( isBinary() )
{
*this << (unsigned int)type << (unsigned int)OPENSCENEGRAPH_SOVERSION;