Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-05-13 14:49:26 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-13 14:49:26 +0400
commit1d8fa5288373d829745037ceee5cbb8c40ef8511 (patch)
tree4fcc71cba6d1ae9cb334cfe821839f27dc7fde94 /source/blender/editors/util
parent6cc8f734c0f17554e2aea4c2ea88e097e3a4199c (diff)
rename BMINDEX_GET/SET to BM_GetIndex/BM_SetIndex
Diffstat (limited to 'source/blender/editors/util')
-rw-r--r--source/blender/editors/util/crazyspace.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/editors/util/crazyspace.c b/source/blender/editors/util/crazyspace.c
index 1dd24db36ec..7a661a94c04 100644
--- a/source/blender/editors/util/crazyspace.c
+++ b/source/blender/editors/util/crazyspace.c
@@ -150,7 +150,7 @@ void crazyspace_set_quats_editmesh(BMEditMesh *em, float *origcos, float *mapped
int index = 0;
BM_ITER(v, &iter, em->bm, BM_VERTS_OF_MESH, NULL) {
- BMINDEX_SET(v, index);
+ BM_SetIndex(v, index);
index++;
}
@@ -163,18 +163,18 @@ void crazyspace_set_quats_editmesh(BMEditMesh *em, float *origcos, float *mapped
BMLoop *l2 = BM_OtherFaceLoop(l->e, l->f, v);
/* retrieve mapped coordinates */
- v1= mappedcos + 3*BMINDEX_GET(l->v);
- v2= mappedcos + 3*BMINDEX_GET(BM_OtherEdgeVert(l2->e, l->v));
- v3= mappedcos + 3*BMINDEX_GET(BM_OtherEdgeVert(l->e, l->v));
+ v1= mappedcos + 3*BM_GetIndex(l->v);
+ v2= mappedcos + 3*BM_GetIndex(BM_OtherEdgeVert(l2->e, l->v));
+ v3= mappedcos + 3*BM_GetIndex(BM_OtherEdgeVert(l->e, l->v));
- co1= (origcos)? origcos + 3*BMINDEX_GET(l->v) : l->v->co;
- co2= (origcos)? origcos + 3*BMINDEX_GET(BM_OtherEdgeVert(l2->e, l->v)) : BM_OtherEdgeVert(l2->e, l->v)->co;
- co3= (origcos)? origcos + 3*BMINDEX_GET(BM_OtherEdgeVert(l->e, l->v)) : BM_OtherEdgeVert(l->e, l->v)->co;
+ co1= (origcos)? origcos + 3*BM_GetIndex(l->v) : l->v->co;
+ co2= (origcos)? origcos + 3*BM_GetIndex(BM_OtherEdgeVert(l2->e, l->v)) : BM_OtherEdgeVert(l2->e, l->v)->co;
+ co3= (origcos)? origcos + 3*BM_GetIndex(BM_OtherEdgeVert(l->e, l->v)) : BM_OtherEdgeVert(l->e, l->v)->co;
set_crazy_vertex_quat(quats, v1, v2, v3, co1, co2, co3);
quats+= 4;
- vert_table[BMINDEX_GET(l->v)] = index+1;
+ vert_table[BM_GetIndex(l->v)] = index+1;
index++;
break; /*just do one corner*/
@@ -184,9 +184,9 @@ void crazyspace_set_quats_editmesh(BMEditMesh *em, float *origcos, float *mapped
index = 0;
BM_ITER(v, &iter, em->bm, BM_VERTS_OF_MESH, NULL) {
if (vert_table[index] != 0)
- BMINDEX_SET(v, vert_table[index]-1);
+ BM_SetIndex(v, vert_table[index]-1);
else
- BMINDEX_SET(v, -1);
+ BM_SetIndex(v, -1);
index++;
}