From 420af788a6e0ab65e1bce44fc094e2f76eea3b23 Mon Sep 17 00:00:00 2001 From: mtarini Date: Thu, 5 Nov 2009 12:55:31 +0000 Subject: [PATCH] fixed bug importing s,t per vert (in blender-flavour plys) --- wrap/io_trimesh/import_ply.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wrap/io_trimesh/import_ply.h b/wrap/io_trimesh/import_ply.h index 8103d14f..2052570c 100644 --- a/wrap/io_trimesh/import_ply.h +++ b/wrap/io_trimesh/import_ply.h @@ -757,6 +757,12 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi ) (*vi).N()[1]=va.n[1]; (*vi).N()[2]=va.n[2]; } + + if( pi.mask & Mask::IOM_VERTTEXCOORD ) + { + (*vi).T().P().X() = va.u; + (*vi).T().P().Y() = va.v; + } if( pi.mask & Mask::IOM_VERTCOLOR ) {