diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-29 20:29:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-29 20:29:09 +0400 |
commit | 6c53638863981dff8ab23eee2999f19bc86c0b01 (patch) | |
tree | 870942ca02bdb91ac18115e6f39739425d451efc /source/blender/blenlib | |
parent | ce64128a84d9847b6ccf37ed233b0586962acd58 (diff) |
add an assert for inserting an egde with the same vertices and a BMESH_TODO for bevel.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/intern/edgehash.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/edgehash.c b/source/blender/blenlib/intern/edgehash.c index 97eb66eb49a..df23f792aa3 100644 --- a/source/blender/blenlib/intern/edgehash.c +++ b/source/blender/blenlib/intern/edgehash.c @@ -94,6 +94,9 @@ void BLI_edgehash_insert(EdgeHash *eh, unsigned int v0, unsigned int v1, void *v unsigned int hash; EdgeEntry *e = BLI_mempool_alloc(eh->epool); + /* this helps to track down errors with bad edge data */ + BLI_assert(v0 != v1); + EDGE_ORD(v0, v1); /* ensure v0 is smaller */ hash = EDGE_HASH(v0, v1) % eh->nbuckets; |