From cb29c783f2639de0cc3eb4c9fb742dcab7657330 Mon Sep 17 00:00:00 2001 From: cignoni Date: Mon, 27 Nov 2006 10:36:13 +0000 Subject: [PATCH] Removed flags initialization. no more necessary --- wrap/io_trimesh/import_ply.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wrap/io_trimesh/import_ply.h b/wrap/io_trimesh/import_ply.h index 43fcdba3..0b5fa65a 100644 --- a/wrap/io_trimesh/import_ply.h +++ b/wrap/io_trimesh/import_ply.h @@ -24,6 +24,9 @@ History $Log: not supported by cvs2svn $ +Revision 1.29 2006/10/14 00:18:42 cignoni +Allowed the correct loading of meshes with 0 faces + Revision 1.28 2006/05/16 15:01:30 cignoni Wedge colors are loaded into facecolor only if specified in the incoming pi.mask @@ -387,7 +390,8 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi ) if( VertexType::HasColor() ) tv.C()=Color4b(Color4b::White); FaceType tf; - tf.UberFlags() = 0; + // No more needed. The default constructor clear the flags; + // tf.UberFlags() = 0; if( FaceType::HasFaceQuality() ) tf.Q()=1.0; if( FaceType::HasWedgeColor() ) tf.WC(0)=tf.WC(1)=tf.WC(2)=Color4b(Color4b::White); if( HasPerFaceColor(m) ) tf.C()=Color4b(Color4b::White);