mirror of https://github.com/vitalif/openscad
Handle lack of trailing newline in dat files. Fixes #336
parent
c5ebdb788b
commit
6ee78e7f68
|
@ -122,7 +122,7 @@ PolySet *SurfaceNode::evaluate_polyset(class PolySetEvaluator *) const
|
|||
std::getline(stream, line);
|
||||
boost::trim(line);
|
||||
}
|
||||
if (stream.eof()) break;
|
||||
if (line.size() == 0 && stream.eof()) break;
|
||||
|
||||
int col = 0;
|
||||
tokenizer tokens(line, sep);
|
||||
|
|
|
@ -1,2 +1,6 @@
|
|||
0 1
|
||||
2 3
|
||||
|
||||
# Comment
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue