Allowed the correct loading of meshes with 0 faces

This commit is contained in:
Paolo Cignoni 2006-10-14 00:18:42 +00:00
parent b7d931e7dc
commit 1b9a2d40a2
1 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.28 2006/05/16 15:01:30 cignoni
Wedge colors are loaded into facecolor only if specified in the incoming pi.mask
Revision 1.27 2006/05/03 21:21:21 cignoni
Corrected bug: mismatch in the index of confidence vertex property (8 instead of 11)
Changed HasPerFaceColor to the new syntax (HasPerFaceColor(m) instead of FaceType::HasFaceColor() )
@ -636,7 +639,7 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi )
for(j=0,vi=m.vert.begin();j<n;++j,++vi)
index[j] = &*vi;
}
else if( !strcmp( pf.ElemName(i),"face") )/************************************************************/
else if( !strcmp( pf.ElemName(i),"face") && (n>0) )/************************************************************/
{
int j;