added static capability query function for ocf vertex texcoord (VertexVectorHasPerVertexTexCoord()) (not having it caused false positives).

This commit is contained in:
Marco Di Benedetto 2012-04-10 16:47:15 +00:00
parent a82ac9639f
commit 1c5f2c2264
1 changed files with 6 additions and 0 deletions

View File

@ -687,6 +687,12 @@ bool VertexVectorHasPerVertexCurvatureDir(const vertex::vector_ocf<VertexType> &
else return VertexType::HasCurvatureDir();
}
template < class VertexType >
bool VertexVectorHasPerVertexTexCoord(const vertex::vector_ocf<VertexType> &fv)
{
if(VertexType::HasTexCoordOcf()) return fv.IsTexCoordEnabled();
else return VertexType::HasTexCoord();
}
}
}// end namespace vcg
#endif