소스 검색

write object bug: need newline between end of v and start of f

Former-commit-id: 2c8f883aa0894fb6bdc072c0e088c7af76ee8365
Fouad Mardini 10 년 전
부모
커밋
742e5ade24
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      include/igl/writeOBJ.cpp

+ 2 - 2
include/igl/writeOBJ.cpp

@@ -106,8 +106,8 @@ IGL_INLINE bool igl::writeOBJ(
     return false;
   }
   s<<
-    V.format(IOFormat(FullPrecision,DontAlignCols," ","\n","v ","","",""))<<
-    (F.array()+1).format(IOFormat(FullPrecision,DontAlignCols," ","\n","f ","","",""));
+    V.format(IOFormat(FullPrecision,DontAlignCols," ","\n","v ","","","\n"))<<
+    (F.array()+1).format(IOFormat(FullPrecision,DontAlignCols," ","\n","f ","","","\n"));
   return true;
 }