Changed debug comments to output to notify level and tweaked the handling of the .terrain file.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user