Updates from Nick.

This commit is contained in:
Robert Osfield
2003-12-22 14:05:04 +00:00
parent 503568a303
commit 26ef2ca0d2
2 changed files with 3 additions and 1 deletions

View File

@@ -557,7 +557,7 @@ osg::Group* TXPArchive::getTileContent(int x, int y, int lod)
trpgMemReadBuffer buf(GetEndian());
if (!ReadTile(x,y,lod,buf))
{
return NULL;
return new osg::Group;
}
osg::Group *tileGroup = _parser->parseScene(buf,_gstates,_models);

View File

@@ -103,6 +103,7 @@ bool TXPNode::loadArchive()
return false;
}
/*
if (_archive->loadMaterials() == false)
{
TXPNodeERROR("loadArchive()") << "failed to load materials from archive: \"" << _archiveName << "\"" << std::endl;
@@ -120,6 +121,7 @@ bool TXPNode::loadArchive()
TXPNodeERROR("loadArchive()") << "failed to load light attributes from archive: \"" << _archiveName << "\"" << std::endl;
return false;
}
*/
_archive->getOrigin(_originX,_originY);
_archive->getExtents(_extents);