diff --git a/src/osgDB/InputStream.cpp b/src/osgDB/InputStream.cpp index 04692738f..a2620896e 100644 --- a/src/osgDB/InputStream.cpp +++ b/src/osgDB/InputStream.cpp @@ -617,7 +617,7 @@ osg::Object* InputStream::readObject( osg::Object* existingObj ) return itr->second.get(); } - osg::ref_ptr obj = readObjectFields( className ); + osg::ref_ptr obj = readObjectFields( className, existingObj ); _identifierMap[id] = obj;