From 70d9050ffced6dacd02b7c7f3eac8360c3bad1ca Mon Sep 17 00:00:00 2001 From: Paolo Cignoni Date: Wed, 21 Feb 2018 08:04:28 +0100 Subject: [PATCH] trying to get rid ofa strange template error on linux. --- wrap/io_trimesh/io_ply.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/wrap/io_trimesh/io_ply.h b/wrap/io_trimesh/io_ply.h index df722c05..b376ee86 100644 --- a/wrap/io_trimesh/io_ply.h +++ b/wrap/io_trimesh/io_ply.h @@ -109,9 +109,12 @@ public: for(int i=0;i<3;++i) { htt[i] = vcg::tri::Allocator:: template GetPerVertexAttribute (m,std::string(attrxyz[i])); - ForEachVertex (m, [&](typename MeshType::VertexType &v) { - htt[i][v] = ht[v][i]; - }); +// ForEachVertex (m, [&](typename MeshType::VertexType &v) { +// htt[i][v] = ht[v][i]; +// }); + for(auto vi=m.vert.begin();vi!=m.vert.end();++vi) + if(!vi->IsD()) + htt[i][vi] = ht[vi][i]; AddPerVertexFloatAttribute(attrxyz[i]); } }