diff options
author | Joseph Eagar <joeedh@gmail.com> | 2009-09-09 11:05:04 +0400 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2009-09-09 11:05:04 +0400 |
commit | e297d7afb02f36457a5347b2cd46a150f70fa99d (patch) | |
tree | 934f8270f4ff1a29f01f5e58669a2acdef03cd3b /source/blender/blenkernel/intern | |
parent | e0a014a45f23cbc0a073a4d70afdd999ef3bdbab (diff) |
gcc compile fix
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/modifiers_bmesh.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/source/blender/blenkernel/intern/modifiers_bmesh.c b/source/blender/blenkernel/intern/modifiers_bmesh.c index 22613d28a92..3bfc7dfbbfb 100644 --- a/source/blender/blenkernel/intern/modifiers_bmesh.c +++ b/source/blender/blenkernel/intern/modifiers_bmesh.c @@ -406,6 +406,7 @@ static DerivedMesh *arrayModifier_doArray(ArrayModifierData *amd, #define _E(s, i) ((BMVert**)(s)->data.buf)[i] +#if 0 /*calculate merge mapping*/ if (j == 0) { BMOperator findop; @@ -438,30 +439,25 @@ static DerivedMesh *arrayModifier_doArray(ArrayModifierData *amd, BMO_ITER(v, &oiter, em->bm, &findop, "targetmapout", 0) { v2 = BMO_IterMapValp(&oiter); - /*make sure merge pairs are duplicate-to-duplicate*/ - /*if (BMINDEX_GET(v) >= s1->len && BMINDEX_GET(v2) >= s1->len) - continue; - else if (BMINDEX_GET(v) < s1->len && BMINDEX_GET(v2) < s1->len) - continue;*/ - indexMap[BMINDEX_GET(v)] = BMINDEX_GET(v2)+1; } BMO_Finish_Op(em->bm, &findop); } +#endif /*generate merge mappping using index map. we do this by using the operator slots as lookup arrays.*/ #define E(i) (i) < s1->len ? _E(s1, i) : _E(s2, (i)-s1->len) - for (i=0; i<indexLen; i++) { + /*for (i=0; i<indexLen; i++) { if (!indexMap[i]) continue; v = E(i); v2 = E(indexMap[i]-1); BMO_Insert_MapPointer(em->bm, &weldop, "targetmap", v, v2); - } + }*/ #undef E #undef _E @@ -483,7 +479,7 @@ static DerivedMesh *arrayModifier_doArray(ArrayModifierData *amd, cddm = CDDM_from_BMEditMesh(em, NULL); BMEdit_Free(em); - MEM_freeN(indexMap); + //MEM_freeN(indexMap); return cddm; } |