BLI_edgehash: assert when edges use the same vert

This was removed on the recent upgrade.
This commit is contained in:
Campbell Barton
2018-12-13 22:44:09 +11:00
parent a4afbe1153
commit 54fa78a048

View File

@@ -94,6 +94,9 @@ BLI_INLINE uint32_t calc_edge_hash(Edge edge)
BLI_INLINE Edge init_edge(uint v0, uint v1)
{
/* If there are use cases where we need this it could be removed (or flag to allow),
* for now this helps avoid incorrect usage (creating degenerate geometry). */
BLI_assert(v0 != v1);
Edge edge;
if (v0 < v1) {
edge.v_low = v0;