// Sculpt UV vertically flipped compared to prims. Flip back
if (prim.Sculpt != null && !prim.Sculpt.SculptTexture.equals(UUID.Zero)
&& prim.Sculpt.getType() != SculptType.Mesh)
{
teFace = (TextureEntryFace)teFace.clone();
teFace.setRepeatV(teFace.getRepeatV() * -1);
}
// Texture transform for this face
TransformTexCoords(face.Vertices, face.Center, teFace, prim.Scale);