Update of IVe version files

This commit is contained in:
Don BURNS
2004-12-08 19:45:07 +00:00
parent b84342c59a
commit fd403f9476
2 changed files with 10 additions and 2 deletions

View File

@@ -14,7 +14,13 @@
#define VERSION_0004 4
#define VERSION_0005 5
#define VERSION_0006 6
#define VERSION VERSION_0006
/* Version 7 adds read/write of the DatabasePath to the
PagedLOD node (OSG 0.9.8) */
#define VERSION_0007 7
#define VERSION VERSION_0007
/* The BYTE_SEX tag is used to check the endian

View File

@@ -98,7 +98,9 @@ void PagedLOD::read(DataInputStream* in){
throw Exception("Group::read(): Could not cast this osg::Group to an osg::Node.");
setDatabasePath(in->readString());
if ( in->getVersion() > VERSION_0006 ) {
setDatabasePath(in->readString());
}
if (getDatabasePath().empty() && in->getOptions() && !in->getOptions()->getDatabasePathList().empty())
{