diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-07-23 19:05:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-07-23 19:05:33 +0400 |
commit | a788cca141fc43015e005d70a85f3ca81ba8065f (patch) | |
tree | ee75cbd869fc58da6bf4036ada0d045b8957a2b6 /source/blender | |
parent | e1928790ae41b1038f45a1100729868f49d3379a (diff) |
correct own error in recent edits to editderivedmesh
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/editderivedmesh.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/editderivedmesh.c b/source/blender/blenkernel/intern/editderivedmesh.c index 01bfe1f7ada..720500d188b 100644 --- a/source/blender/blenkernel/intern/editderivedmesh.c +++ b/source/blender/blenkernel/intern/editderivedmesh.c @@ -1458,7 +1458,6 @@ static void emDM_copyLoopArray(DerivedMesh *dm, MLoop *r_loop) BMesh *bm = bmdm->em->bm; BMIter iter; BMFace *efa; - BMLoop *l; BM_mesh_elem_index_ensure(bm, BM_VERT | BM_EDGE); @@ -1466,8 +1465,8 @@ static void emDM_copyLoopArray(DerivedMesh *dm, MLoop *r_loop) BMLoop *l_iter, *l_first; l_iter = l_first = BM_FACE_FIRST_LOOP(efa); do { - r_loop->v = BM_elem_index_get(l->v); - r_loop->e = BM_elem_index_get(l->e); + r_loop->v = BM_elem_index_get(l_iter->v); + r_loop->e = BM_elem_index_get(l_iter->e); r_loop++; } while ((l_iter = l_iter->next) != l_first); } |