added static capability query function for ocf vertex texcoord (VertexVectorHasPerVertexTexCoord()) (not having it caused false positives).
This commit is contained in:
parent
a82ac9639f
commit
1c5f2c2264
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue