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/editors/uvedit/uvedit_draw.c
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/editors/uvedit/uvedit_draw.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_draw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c
index 26fbc48d2fb..3103e12f7f2 100644
--- a/source/blender/editors/uvedit/uvedit_draw.c
+++ b/source/blender/editors/uvedit/uvedit_draw.c
@@ -206,12 +206,12 @@ static void draw_uvs_stretch(SpaceImage *sima, Scene *scene, BMEditMesh *em, MTe
totuvarea += poly_uv_area(tf_uv, efa->len);
if(uvedit_face_visible(scene, ima, efa, tf)) {
- BM_elem_flag_set(efa, BM_ELEM_TAG);
+ BM_elem_flag_enable(efa, BM_ELEM_TAG);
}
else {
if(tf == activetf)
activetf= NULL;
- BM_elem_flag_clear(efa, BM_ELEM_TAG);
+ BM_elem_flag_disable(efa, BM_ELEM_TAG);
}
}
@@ -569,7 +569,7 @@ static void draw_uvs(SpaceImage *sima, Scene *scene, Object *obedit)
tf= CustomData_bmesh_get(&em->bm->pdata, efa->head.data, CD_MTEXPOLY);
if(uvedit_face_visible(scene, ima, efa, tf)) {
- BM_elem_flag_set(efa, BM_ELEM_TAG);
+ BM_elem_flag_enable(efa, BM_ELEM_TAG);
if(tf==activetf) continue; /* important the temp boolean is set above */
if(uvedit_face_selected(scene, em, efa))
@@ -587,7 +587,7 @@ static void draw_uvs(SpaceImage *sima, Scene *scene, Object *obedit)
else {
if(tf == activetf)
activetf= NULL;
- BM_elem_flag_clear(efa, BM_ELEM_TAG);
+ BM_elem_flag_disable(efa, BM_ELEM_TAG);
}
}
glDisable(GL_BLEND);
@@ -599,12 +599,12 @@ static void draw_uvs(SpaceImage *sima, Scene *scene, Object *obedit)
tf= CustomData_bmesh_get(&em->bm->pdata, efa->head.data, CD_MTEXPOLY);
if(uvedit_face_visible(scene, ima, efa, tf)) {
- BM_elem_flag_set(efa, BM_ELEM_TAG);
+ BM_elem_flag_enable(efa, BM_ELEM_TAG);
}
else {
if(tf == activetf)
activetf= NULL;
- BM_elem_flag_clear(efa, BM_ELEM_TAG);
+ BM_elem_flag_disable(efa, BM_ELEM_TAG);
}
}