Added the ability to turn off the external paging in of PagedLOD children.

This commit is contained in:
Robert Osfield
2009-07-16 10:13:41 +00:00
parent 5eceffc06b
commit 5496e91f87
5 changed files with 35 additions and 2 deletions

View File

@@ -37,6 +37,10 @@ void PagedLOD::write(DataOutputStream* out)
out->writeFloat(getRadius());
out->writeUInt(getNumChildrenThatCannotBeExpired());
if ( out->getVersion() >= VERSION_0041 )
{
out->writeBool(getDisableExternalChildrenPaging());
}
unsigned int numChildrenToWriteOut = 0;
@@ -140,6 +144,11 @@ void PagedLOD::read(DataInputStream* in)
setRadius(in->readFloat());
setNumChildrenThatCannotBeExpired(in->readUInt());
if ( in->getVersion() >= VERSION_0041 )
{
setDisableExternalChildrenPaging(in->readBool());
}
// Read groups properties.
// Read number of children.