Bugfix: OFF reader should accept comments and empty lines

This commit is contained in:
Simon Giraudot 2015-11-25 09:18:15 +01:00
parent 4ae7b72bd7
commit 30c352f025
1 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,11 @@ read_off_points_and_normals(
{
iss.clear();
iss.str(line);
// Ignore empty lines and comments
if (line.empty () || line[0] == '#')
continue;
lineNumber++;
// Reads file signature on first line