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>2012-04-19 15:44:12 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-19 15:44:12 +0400
commit75b869e428cdb324ec338538efd4ab9dabd7d53a (patch)
tree7e47368e70820c4ee08e8b11abfe72eccb2fcb2b /source/blender/editors/mesh/mesh_data.c
parentdb2edfcfdec81fb03667a63e70f05ee832bf2586 (diff)
style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER
Diffstat (limited to 'source/blender/editors/mesh/mesh_data.c')
-rw-r--r--source/blender/editors/mesh/mesh_data.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/mesh/mesh_data.c b/source/blender/editors/mesh/mesh_data.c
index b2d37e8fc67..d3c0a1245fc 100644
--- a/source/blender/editors/mesh/mesh_data.c
+++ b/source/blender/editors/mesh/mesh_data.c
@@ -199,7 +199,7 @@ static void editmesh_face_copy_customdata(BMEditMesh *em, int type, int index)
const int n = CustomData_get_active_layer(pdata, type);
/* ensure all current elements follow new customdata layout */
- BM_ITER(efa, &iter, bm, BM_FACES_OF_MESH, NULL) {
+ BM_ITER (efa, &iter, bm, BM_FACES_OF_MESH, NULL) {
void *data = CustomData_bmesh_get_n(pdata, efa->head.data, type, n);
CustomData_bmesh_set_n(pdata, efa->head.data, type, index, data);
}
@@ -217,8 +217,8 @@ static void editmesh_loop_copy_customdata(BMEditMesh *em, int type, int index)
const int n = CustomData_get_active_layer(ldata, type);
/* ensure all current elements follow new customdata layout */
- BM_ITER(efa, &iter, bm, BM_FACES_OF_MESH, NULL) {
- BM_ITER(loop, &liter, bm, BM_LOOPS_OF_FACE, efa) {
+ BM_ITER (efa, &iter, bm, BM_FACES_OF_MESH, NULL) {
+ BM_ITER (loop, &liter, bm, BM_LOOPS_OF_FACE, efa) {
void *data = CustomData_bmesh_get_n(ldata, loop->head.data, type, n);
CustomData_bmesh_set_n(ldata, loop->head.data, type, index, data);
}
@@ -245,12 +245,12 @@ int ED_mesh_uv_loop_reset_ex(struct bContext *C, struct Mesh *me, const int laye
BLI_assert(CustomData_has_layer(&em->bm->ldata, CD_MLOOPUV));
- BM_ITER(efa, &iter, em->bm, BM_FACES_OF_MESH, NULL) {
+ BM_ITER (efa, &iter, em->bm, BM_FACES_OF_MESH, NULL) {
if (!BM_elem_flag_test(efa, BM_ELEM_SELECT))
continue;
i = 0;
- BM_ITER(l, &liter, em->bm, BM_LOOPS_OF_FACE, efa) {
+ BM_ITER (l, &liter, em->bm, BM_LOOPS_OF_FACE, efa) {
luv = CustomData_bmesh_get_n(&em->bm->ldata, l->head.data, CD_MLOOPUV, layernum);
BLI_array_append(uvs, luv->uv);
i++;