Merge branch 'MeshHandle_to_MPropHandle' into 'master'

add struct to HandleToPropHandle to get an MPropHandle from a MeshHandle

See merge request OpenMesh/OpenMesh!240
This commit is contained in:
Jan Möbius
2019-12-03 13:13:13 +01:00

View File

@@ -35,6 +35,11 @@ namespace OpenMesh {
using type = OpenMesh::MPropHandleT<T>;
};
template<typename T>
struct HandleToPropHandle<OpenMesh::MeshHandle, T> {
using type = OpenMesh::MPropHandleT<T>;
};
} // namespace OpenMesh
#endif // HANDLETOPROPHANDLE_HH_
#endif // HANDLETOPROPHANDLE_HH_