Skip to content

Commit

Permalink
Fix savePLY
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Feb 13, 2022
1 parent 41174b4 commit 9923e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/jmeshlib/src/MESH_STRUCTURE/io.cpp
Expand Up @@ -1099,7 +1099,7 @@ int Triangulation::savePLY(const char *fname, bool ascii)

strcpy(triname,fname);

if ((fp = fopen(triname,"w")) == NULL)
if ((fp = fopen(triname,ascii ? "w" : "wb")) == NULL)
{
JMesh::warning("Can't open '%s' for output !\n",triname);
return 1;
Expand Down

0 comments on commit 9923e9b

Please sign in to comment.