fixed bug importing s,t per vert (in blender-flavour plys)

This commit is contained in:
mtarini 2009-11-05 12:55:31 +00:00
parent 3482ee805e
commit 420af788a6
1 changed files with 6 additions and 0 deletions

View File

@ -757,6 +757,12 @@ static int Open( OpenMeshType &m, const char * filename, PlyInfo &pi )
(*vi).N()[1]=va.n[1]; (*vi).N()[1]=va.n[1];
(*vi).N()[2]=va.n[2]; (*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 ) if( pi.mask & Mask::IOM_VERTCOLOR )
{ {