浏览代码

Fix https://github.com/libigl/libigl/issues/1946

Alec Jacobson 3 年之前
父节点
当前提交
79dc4f6838
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/igl/readMESH.cpp

+ 1 - 1
include/igl/readMESH.cpp

@@ -48,7 +48,7 @@ IGL_INLINE bool igl::readMESH(
     while(still_comments)
     while(still_comments)
     {
     {
       has_line = fgets(line,LINE_MAX,mesh_file) != NULL;
       has_line = fgets(line,LINE_MAX,mesh_file) != NULL;
-      still_comments = (line[0] == '#' || line[0] == '\n');
+      still_comments = (line[0] == '#' || line[0] == '\n' || line[0] == '\r');
     }
     }
     return has_line;
     return has_line;
   };
   };