Corrected use of HasPerWedgeTexture

This commit is contained in:
Paolo Cignoni 2006-01-30 09:00:40 +00:00
parent 7c20ead0c3
commit 2857c3bafb
1 changed files with 4 additions and 1 deletions

View File

@ -24,6 +24,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.2 2006/01/22 17:08:50 cignoni
Bug due to wrong compuation of size of auxiliary vector (vn instead of vert.size() )
Revision 1.1 2006/01/11 15:45:21 cignoni
Initial Release
@ -84,7 +87,7 @@ static void ImportFace(MeshLeft &ml, MeshRight &mr, FaceLeft &fl, FaceRight &fr,
fl.V(2)=&ml.vert[remap[ Index(mr,fr.V(2))]];
if(fl.HasFaceColor() && fl.HasFaceColor()) fl.C()=fr.C();
if(fl.HasFaceQuality() && fl.HasFaceQuality()) fl.Q()=fr.Q();
if(fl.HasWedgeTexture() && fl.HasWedgeTexture())
if(tri::HasPerWedgeTexture(mr) && tri::HasPerWedgeTexture(ml))
{
fl.WT(0)=fr.WT(0);
fl.WT(1)=fr.WT(1);