Эх сурвалжийг харах

Merge pull request #74 from fmardini/my-master

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

Former-commit-id: 049d1071f884f0ea26181a05e477d4e30181355d
Alec Jacobson 10 жил өмнө
parent
commit
5e0e174431

+ 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;
 }