diff --git a/vcg/complex/trimesh/refine.h b/vcg/complex/trimesh/refine.h index bd1d612d..57324bdf 100644 --- a/vcg/complex/trimesh/refine.h +++ b/vcg/complex/trimesh/refine.h @@ -128,6 +128,9 @@ struct MidPoint : public std::unary_functionV(ep.z)->Q()+ep.f->V1(ep.z)->Q())) / 2.0; + + if( MESH_TYPE::HasPerVertexTexCoord()) + nv.T().P() = ((ep.f->V(ep.z)->T().P()+ep.f->V1(ep.z)->T().P())) / 2.0; } Color4 WedgeInterp(Color4 &c0, Color4 &c1)