From 9dc93f2b24c01a565aa80fa351d9e5f89034d2ac Mon Sep 17 00:00:00 2001 From: cignoni Date: Tue, 29 Dec 2015 07:13:51 +0000 Subject: [PATCH] small bug in mask initialization for obj files --- wrap/io_trimesh/import_obj.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrap/io_trimesh/import_obj.h b/wrap/io_trimesh/import_obj.h index 651729e3..be9abcfc 100644 --- a/wrap/io_trimesh/import_obj.h +++ b/wrap/io_trimesh/import_obj.h @@ -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;