diff --git a/src/osgPlugins/ive/PagedLOD.cpp b/src/osgPlugins/ive/PagedLOD.cpp index 7ecbb188d..0264897b3 100644 --- a/src/osgPlugins/ive/PagedLOD.cpp +++ b/src/osgPlugins/ive/PagedLOD.cpp @@ -30,7 +30,7 @@ void PagedLOD::write(DataOutputStream* out){ else throw Exception("PagedLOD::write(): Could not cast this osg::PagedLOD to an osg::LOD."); - + out->writeString(getDatabasePath()); out->writeFloat(getRadius()); out->writeUInt(getNumChildrenThatCannotBeExpired()); @@ -98,6 +98,8 @@ void PagedLOD::read(DataInputStream* in){ throw Exception("Group::read(): Could not cast this osg::Group to an osg::Node."); + setDatabasePath(in->readString()); + if (getDatabasePath().empty() && in->getOptions() && !in->getOptions()->getDatabasePathList().empty()) { const std::string& path = in->getOptions()->getDatabasePathList().front();