Explorar o código

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

Former-commit-id: 2c8f883aa0894fb6bdc072c0e088c7af76ee8365
Fouad Mardini %!s(int64=10) %!d(string=hai) anos
pai
achega
742e5ade24
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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;
 }