Tolerate blank lines in buildings lists
This commit is contained in:
parent
001ae80723
commit
92d053d850
@ -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