From Ulrich Hertlein, "attached are patches to osgTerrain that fix some typos and add a bit of documentation.
"
This commit is contained in:
@@ -45,7 +45,7 @@ void osgTerrain::extractSetNameAndFileName(const std::string& compoundstring, st
|
||||
filename = compoundstring.substr(secondcolonpos+1, std::string::npos);
|
||||
}
|
||||
|
||||
std::string osgTerrain::createCompondSetNameAndFileName(const std::string& setname, const std::string& filename)
|
||||
std::string osgTerrain::createCompoundSetNameAndFileName(const std::string& setname, const std::string& filename)
|
||||
{
|
||||
if (setname.empty()) return filename;
|
||||
return std::string("set:")+setname+std::string(":")+filename;
|
||||
@@ -620,7 +620,7 @@ void CompositeLayer::setCompoundName(unsigned int i, const std::string& compound
|
||||
|
||||
std::string CompositeLayer::getCompoundName(unsigned int i) const
|
||||
{
|
||||
return createCompondSetNameAndFileName(_layers[i].setname, _layers[i].filename);
|
||||
return createCompoundSetNameAndFileName(_layers[i].setname, _layers[i].filename);
|
||||
}
|
||||
|
||||
void CompositeLayer::addLayer(const std::string& compoundname)
|
||||
|
||||
@@ -68,7 +68,7 @@ bool HeightFieldLayer_writeLocalData(const osg::Object& obj, osgDB::Output& fw)
|
||||
|
||||
if (!layer.getFileName().empty())
|
||||
{
|
||||
std::string str = osgTerrain::createCompondSetNameAndFileName(layer.getName(), layer.getFileName());
|
||||
std::string str = osgTerrain::createCompoundSetNameAndFileName(layer.getName(), layer.getFileName());
|
||||
fw.indent()<<"file "<< str << std::endl;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user