diff --git a/wrap/io_trimesh/export_off.h b/wrap/io_trimesh/export_off.h index 2fc5c17b..03a7d632 100644 --- a/wrap/io_trimesh/export_off.h +++ b/wrap/io_trimesh/export_off.h @@ -86,7 +86,8 @@ public: for(j=0,vi=m.vert.begin();vi!=m.vert.end();++vi) { vp=&(*vi); - FlagV.push_back(vp->Flags()); // Save vertex flags + if (vcg::tri::HasPerVertexFlags(m)) + FlagV.push_back(vp->Flags()); // Save vertex flags if( ! vp->IsD() ) { // ***** ASCII *****