fixed crash when importing a polygonal ply onto a polygonal mesh

This commit is contained in:
Luigi Malomo 2017-05-30 19:18:57 +02:00
parent 98ff7bc396
commit 5f27854447
1 changed files with 2 additions and 0 deletions

View File

@ -839,6 +839,8 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi )
}
for(int qq=0;qq<fa.size-3;++qq)
{
if(HasPolyInfo(m)) (*fi).Alloc(3);
(*fi).V(0) = index[ fa.v[0] ];
for(k=1;k<3;++k)
{