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-02-25 23:43:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-25 23:43:51 +0400
commit55e68985e7cf868481d3ffcb845f94e3c52a5043 (patch)
treeee679ecb5c00a258972f6ca0f8ecc1c777695f1f /source/blender/bmesh/operators/bmo_dupe.c
parent0096370db89eaf315a8c75b29076b9b85c83409a (diff)
bmesh api:
* added BM_elem_flag_set, BMO_elem_flag_set. to avoid 'if(...) enable(); else disable();' all over the place. * added bmesh_operator_api_inline.c, the header file was getting messy.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_dupe.c')
-rw-r--r--source/blender/bmesh/operators/bmo_dupe.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/bmesh/operators/bmo_dupe.c b/source/blender/bmesh/operators/bmo_dupe.c
index d7626673e43..09b0e2042f4 100644
--- a/source/blender/bmesh/operators/bmo_dupe.c
+++ b/source/blender/bmesh/operators/bmo_dupe.c
@@ -407,7 +407,9 @@ void splitop_exec(BMesh *bm, BMOperator *op)
break;
}
}
- if (!found) BMO_elem_flag_enable(bm, e, SPLIT_INPUT);
+ if (!found) {
+ BMO_elem_flag_enable(bm, e, SPLIT_INPUT);
+ }
}
for (v = BM_iter_new(&iter, bm, BM_VERTS_OF_MESH, NULL); v; v = BM_iter_step(&iter)) {
@@ -419,8 +421,9 @@ void splitop_exec(BMesh *bm, BMOperator *op)
break;
}
}
- if (!found) BMO_elem_flag_enable(bm, v, SPLIT_INPUT);
-
+ if (!found) {
+ BMO_elem_flag_enable(bm, v, SPLIT_INPUT);
+ }
}
}