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();
|
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
|
}// end namespace vcg
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue