fix for error filling in index data

This commit is contained in:
Campbell Barton 2011-11-28 18:21:10 +00:00
parent 063dd4f60a
commit 79ffbe96a3

@ -575,6 +575,8 @@ BMesh *BM_Copy_Mesh(BMesh *bmold)
f2 = BM_Make_Ngon(bm, v, v2, edges, f->len, 0); f2 = BM_Make_Ngon(bm, v, v2, edges, f->len, 0);
if (!f2) if (!f2)
continue; continue;
/* use totface incase adding some faces fails */
BM_SetIndex(f2, (bm->totface-1)); /* set_inline */
ftable[i] = f2; ftable[i] = f2;