From d238a74cd9b05802f09d2c51193c5956e29c2028 Mon Sep 17 00:00:00 2001 From: granzuglia Date: Thu, 30 Jul 2015 11:46:05 +0000 Subject: [PATCH] - added missed security control --- wrap/io_trimesh/export_off.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 *****