From b141c0f63ef6ca3cf328236589a31045898dbcf1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 22 Jan 2016 10:09:00 +0000 Subject: [PATCH] Changed the prototype from NULL to osg::DummyObject to address a bug in reading .osgt + .osgx where an image is written out but fails to read the file causes subsequent parts of the file to be mis-read --- src/osgWrappers/serializers/osg/Object.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgWrappers/serializers/osg/Object.cpp b/src/osgWrappers/serializers/osg/Object.cpp index 1ffd0c929..ee7f2b637 100644 --- a/src/osgWrappers/serializers/osg/Object.cpp +++ b/src/osgWrappers/serializers/osg/Object.cpp @@ -29,7 +29,7 @@ static bool writeUserData( osgDB::OutputStream& os, const osg::Object& obj ) } REGISTER_OBJECT_WRAPPER( Object, - /*new osg::Object*/NULL, + new osg::DummyObject, osg::Object, "osg::Object" ) {