add struct to HandleToPropHandle to get an MPropHandle from a MeshHandle

This commit is contained in:
Max Lyon
2019-12-03 09:52:40 +01:00
parent 42ea9177ab
commit 14b9279d5a

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_