Changed debug comments to output to notify level and tweaked the handling of the .terrain file.

This commit is contained in:
Robert Osfield
2007-08-24 19:16:35 +00:00
parent 09f63eebbb
commit f9ab446512
2 changed files with 3 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ class ReaderWriterTerrain : public osgDB::ReaderWriter
osg::notify(osg::NOTICE)<<"["<<itr->first<<"] = "<<"["<<itr->second<<"]"<<std::endl;
}
#else
std::istringstream fin(file);
std::istringstream fin(osgDB::getNameLessExtension(file));
if (fin) return readNode(fin,opt);
#endif
return 0;

View File

@@ -145,6 +145,8 @@ Locator* GeometryTechnique::computeMasterLocator()
osg::Vec3d GeometryTechnique::computeCenterModel(Locator* masterLocator)
{
if (!masterLocator) return osg::Vec3d(0.0,0.0,0.0);
BufferData& buffer = getWriteBuffer();
osgTerrain::Layer* elevationLayer = _terrain->getElevationLayer();