Added Marco's fix for data path for the .ive plugin
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user