From 81ff3e16d6b80c65f94a6477b6a3f1b667c0d890 Mon Sep 17 00:00:00 2001 From: Don BURNS Date: Sat, 27 Nov 2004 19:23:41 +0000 Subject: [PATCH] Added Marco's fix for data path for the .ive plugin --- src/osgPlugins/ive/PagedLOD.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();