Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-02-29 20:29:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-29 20:29:09 +0400
commit6c53638863981dff8ab23eee2999f19bc86c0b01 (patch)
tree870942ca02bdb91ac18115e6f39739425d451efc /source/blender/blenlib
parentce64128a84d9847b6ccf37ed233b0586962acd58 (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.c3
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;