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-12 22:43:59 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-12 22:43:59 +0400
commit37ff2a291f38548e1ac9d5d31939ecda0bea65ed (patch)
treea48f24ce0f148e57dfba04d9193579c74153596f /source/blender/modifiers/intern
parentc34af2c9b1527af857b674eb0e7aaaeab99c7758 (diff)
BMesh api function naming.
`_set` suffix was used in two ways (confusing) * to set a flag to be enabled. * to set a value passed as an argument. now use enable/disable rather then set/clear for functions which change flags. also remove BME_weld.c, the file didnt contain much code and the current extrude works well
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r--source/blender/modifiers/intern/MOD_bevel.c4
-rw-r--r--source/blender/modifiers/intern/MOD_edgesplit.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/modifiers/intern/MOD_bevel.c b/source/blender/modifiers/intern/MOD_bevel.c
index f06f595ae1f..789244c6e88 100644
--- a/source/blender/modifiers/intern/MOD_bevel.c
+++ b/source/blender/modifiers/intern/MOD_bevel.c
@@ -132,7 +132,7 @@ static DerivedMesh *applyModifier(ModifierData *md, struct Object *ob,
(l2= e->l->radial_next) != l1)
{
if (dot_v3v3(l1->f->no, l2->f->no) < threshold) {
- BMO_elem_flag_set(bm, e, EDGE_MARK);
+ BMO_elem_flag_enable(bm, e, EDGE_MARK);
}
}
}
@@ -140,7 +140,7 @@ static DerivedMesh *applyModifier(ModifierData *md, struct Object *ob,
else {
/* crummy, is there a way just to operator on all? - campbell */
BM_ITER(e, &iter, bm, BM_EDGES_OF_MESH, NULL) {
- BMO_elem_flag_set(bm, e, EDGE_MARK);
+ BMO_elem_flag_enable(bm, e, EDGE_MARK);
}
}
diff --git a/source/blender/modifiers/intern/MOD_edgesplit.c b/source/blender/modifiers/intern/MOD_edgesplit.c
index 56e2550f6dd..ed52ebe47ba 100644
--- a/source/blender/modifiers/intern/MOD_edgesplit.c
+++ b/source/blender/modifiers/intern/MOD_edgesplit.c
@@ -80,7 +80,7 @@ static DerivedMesh *doEdgeSplit(DerivedMesh *dm, EdgeSplitModifierData *emd, Obj
(l2= e->l->radial_next) != l1)
{
if (dot_v3v3(l1->f->no, l2->f->no) < threshold) {
- BMO_elem_flag_set(bm, e, EDGE_MARK);
+ BMO_elem_flag_enable(bm, e, EDGE_MARK);
}
}
}
@@ -89,7 +89,7 @@ static DerivedMesh *doEdgeSplit(DerivedMesh *dm, EdgeSplitModifierData *emd, Obj
if (emd->flags & MOD_EDGESPLIT_FROMFLAG) {
BM_ITER(e, &iter, bm, BM_EDGES_OF_MESH, NULL) {
if (BM_elem_flag_test(e, BM_ELEM_SHARP))
- BMO_elem_flag_set(bm, e, EDGE_MARK);
+ BMO_elem_flag_enable(bm, e, EDGE_MARK);
}
}