Added Marco's fix for data path for the .ive plugin

This commit is contained in:
Don BURNS
2004-11-27 19:23:41 +00:00
parent 03b9ebe56a
commit 81ff3e16d6

View File

@@ -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();