fixed crash when importing a polygonal ply onto a polygonal mesh
This commit is contained in:
parent
98ff7bc396
commit
5f27854447
|
|
@ -839,6 +839,8 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi )
|
||||||
}
|
}
|
||||||
for(int qq=0;qq<fa.size-3;++qq)
|
for(int qq=0;qq<fa.size-3;++qq)
|
||||||
{
|
{
|
||||||
|
if(HasPolyInfo(m)) (*fi).Alloc(3);
|
||||||
|
|
||||||
(*fi).V(0) = index[ fa.v[0] ];
|
(*fi).V(0) = index[ fa.v[0] ];
|
||||||
for(k=1;k<3;++k)
|
for(k=1;k<3;++k)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue