small bug in mask initialization for obj files

This commit is contained in:
Paolo Cignoni 2015-12-29 07:13:51 +00:00
parent ff69fec423
commit 9dc93f2b24
1 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ namespace vcg {
static int Open(OpenMeshType &mesh, const char *filename, int &loadmask, CallBackPos *cb=0)
{
Info oi;
oi.mask=-1;
oi.mask=0;
oi.cb=cb;
int ret=Open(mesh,filename,oi);
loadmask=oi.mask;
@ -234,7 +234,7 @@ namespace vcg {
CallBackPos *cb = oi.cb;
// if LoadMask has not been called yet, we call it here
if (oi.mask == -1)
if (oi.mask == 0)
LoadMask(filename, oi);
const int inputMask = oi.mask;