fix for own commit r56204, wasnt checking edges exist before adding.
authorCampbell Barton <ideasman42@gmail.com>
Sat, 27 Apr 2013 01:16:38 +0000 (01:16 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 27 Apr 2013 01:16:38 +0000 (01:16 +0000)
source/blender/blenkernel/intern/mesh.c

index 1e1ea0479bdcff1eb1fc6a5e427fbcf83f7c4e5a..93b398cec553417a5cf33da2147422c7387d511c 100644 (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++;