fix for own commit r56204, wasnt checking edges exist before adding.

This commit is contained in:
Campbell Barton
2013-04-27 01:16:38 +00:00
parent 5018ea5e29
commit 2b640a2519

View File

@@ -3496,7 +3496,9 @@ void BKE_mesh_poly_edgehash_insert(EdgeHash *ehash, const MPoly *mp, const MLoop
ml = &ml_next[i - 1]; /* last loop */
while (i-- != 0) {
BLI_edgehash_insert(ehash, ml->v, ml_next->v, NULL);
if (!BLI_edgehash_haskey(ehash, ml->v, ml_next->v)) {
BLI_edgehash_insert(ehash, ml->v, ml_next->v, NULL);
}
ml = ml_next;
ml_next++;