diff --git a/src/osgDB/OutputStream.cpp b/src/osgDB/OutputStream.cpp index c5a385f81..8d8a7abe5 100644 --- a/src/osgDB/OutputStream.cpp +++ b/src/osgDB/OutputStream.cpp @@ -925,24 +925,31 @@ template void OutputStream::writeArrayImplementation( const T* a, int write_size, unsigned int numInRow ) { *this << write_size << BEGIN_BRACKET; - if ( numInRow>1 ) + if ( isBinary() ) { - for ( int i=0; i1 ) + { + for ( int i=0; i