diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-01 16:51:38 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-01 16:51:38 +0400 |
commit | a1e95e2e1818ffc88aa5079916b1ee51c1e585f0 (patch) | |
tree | db3fa5a5d78e74fbe81ab3da72e17540fa932bd5 /source/blender/editors/util/crazyspace.c | |
parent | 63eb94e5045950a8759623e70fe05b4bee309850 (diff) |
replace as many uses of BM_Get/SetIndex as possible with tagging with a temp flag, some uses need index values to be set, so this will need more effort to replace (crazy space and solidify for eg).
Diffstat (limited to 'source/blender/editors/util/crazyspace.c')
-rw-r--r-- | source/blender/editors/util/crazyspace.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/util/crazyspace.c b/source/blender/editors/util/crazyspace.c index b3dbd6f6085..f4e1773db49 100644 --- a/source/blender/editors/util/crazyspace.c +++ b/source/blender/editors/util/crazyspace.c @@ -145,7 +145,8 @@ void crazyspace_set_quats_editmesh(BMEditMesh *em, float *origcos, float *mapped float *v1, *v2, *v3, *co1, *co2, *co3; int *vert_table = MEM_callocN(sizeof(int)*em->bm->totvert, "vert_table"); int index = 0; - + + /* BMESH_TODO this should be valid now, leaving here until we can ensure this - campbell */ BM_ITER(v, &iter, em->bm, BM_VERTS_OF_MESH, NULL) { BM_SetIndex(v, index); index++; @@ -177,7 +178,9 @@ void crazyspace_set_quats_editmesh(BMEditMesh *em, float *origcos, float *mapped break; /*just do one corner*/ } } - + + /* BMESH_TODO, don't overwrite invalid index info! */ + index = 0; BM_ITER(v, &iter, em->bm, BM_VERTS_OF_MESH, NULL) { if (vert_table[index] != 0) |