From c5ad3694bd9403893e24e0e94156513d7ec10345 Mon Sep 17 00:00:00 2001 From: cignoni Date: Thu, 19 Mar 2009 10:29:24 +0000 Subject: [PATCH] Corrected small bug inserted during the add of pervertexradius ply elements --- wrap/io_trimesh/import_ply.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wrap/io_trimesh/import_ply.h b/wrap/io_trimesh/import_ply.h index c237d871..0bdbf8ce 100644 --- a/wrap/io_trimesh/import_ply.h +++ b/wrap/io_trimesh/import_ply.h @@ -558,10 +558,11 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi ) pi.mask |= Mask::IOM_VERTCOLOR; } } - if( VertexType::HasRadius() ) + + if(tri::HasPerVertexRadius(m)) { - pf.AddToRead(VertDesc(15)); - pi.mask |= Mask::IOM_VERTRADIUS; + if( pf.AddToRead(VertDesc(15))!=-1 ) + pi.mask |= Mask::IOM_VERTRADIUS; } // se ci sono i flag per vertice ci devono essere anche i flag per faccia if( pf.AddToRead(FaceDesc(1))!=-1 )