From 34495aea67916dcb94a5ae71499f8816da873ba6 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Wed, 14 Feb 2007 16:07:41 +0000 Subject: [PATCH] added HasPerFaceFlag --- wrap/io_trimesh/export_ply.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wrap/io_trimesh/export_ply.h b/wrap/io_trimesh/export_ply.h index 755c831a..1a25b00f 100644 --- a/wrap/io_trimesh/export_ply.h +++ b/wrap/io_trimesh/export_ply.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.20 2007/02/14 15:40:20 ganovelli +a wrong "!" corrected + Revision 1.19 2007/02/14 15:30:13 ganovelli added treatment of HasPerVertexFlags absent @@ -493,7 +496,7 @@ static int Save(SaveMeshType &m, const char * filename, bool binary, PlyInfo &p fwrite(&c,1,1,fpout); fwrite(vv,sizeof(int),3,fpout); - if( pi.mask & Mask::IOM_FACEFLAGS ) + if(m.HasPerVertexFlags()&&( pi.mask & Mask::IOM_FACEFLAGS) ) fwrite(&(fp->Flags()),sizeof(int),1,fpout); if( m.HasPerVertexTexture() && (pi.mask & Mask::IOM_VERTTEXCOORD) )