Tolerate blank lines in buildings lists
This commit is contained in:
parent
9fbf56004b
commit
14494afd2f
@ -441,6 +441,10 @@ typedef QuadTreeBuilder<LOD*, SGBuildingBin::BuildingInstance, MakeBuildingLeaf,
|
|||||||
if (hash_pos != std::string::npos)
|
if (hash_pos != std::string::npos)
|
||||||
line.resize(hash_pos);
|
line.resize(hash_pos);
|
||||||
|
|
||||||
|
if (line.empty()) {
|
||||||
|
continue; // skip blank lines
|
||||||
|
}
|
||||||
|
|
||||||
// and process further
|
// and process further
|
||||||
std::stringstream in(line);
|
std::stringstream in(line);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user