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>2015-11-23 07:44:15 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-11-23 09:40:50 +0300
commit48b1656a6cce6fd7606a671eea9d0d17b67d7445 (patch)
treed95ed94cf1d1934c01de44364db7d53ca2262ff3 /source/blender/editors/mesh
parent6e4cb463c44ab57331cda7ded645b4faa573bbb3 (diff)
Cleanup: shadowing (editors)
Diffstat (limited to 'source/blender/editors/mesh')
-rw-r--r--source/blender/editors/mesh/editmesh_knife.c8
-rw-r--r--source/blender/editors/mesh/editmesh_select.c3
2 files changed, 4 insertions, 7 deletions
diff --git a/source/blender/editors/mesh/editmesh_knife.c b/source/blender/editors/mesh/editmesh_knife.c
index 3c8ea19180e..baf1fa8ed4d 100644
--- a/source/blender/editors/mesh/editmesh_knife.c
+++ b/source/blender/editors/mesh/editmesh_knife.c
@@ -859,7 +859,6 @@ static void knife_cut_face(KnifeTool_OpData *kcd, BMFace *f, ListBase *hits)
static void knife_add_cut(KnifeTool_OpData *kcd)
{
int i;
- KnifeLineHit *lh;
GHash *facehits;
BMFace *f;
Ref *r;
@@ -877,7 +876,7 @@ static void knife_add_cut(KnifeTool_OpData *kcd)
/* make facehits: map face -> list of linehits touching it */
facehits = BLI_ghash_ptr_new("knife facehits");
for (i = 0; i < kcd->totlinehit; i++) {
- lh = &kcd->linehits[i];
+ KnifeLineHit *lh = &kcd->linehits[i];
if (lh->f) {
add_hit_to_facehits(kcd, facehits, lh->f, lh);
}
@@ -908,15 +907,14 @@ static void knife_add_cut(KnifeTool_OpData *kcd)
if (kcd->prev.bmface) {
- KnifeLineHit *lh;
/* was "in face" but now we have a KnifeVert it is snapped to */
- lh = &kcd->linehits[kcd->totlinehit - 1];
+ KnifeLineHit *lh = &kcd->linehits[kcd->totlinehit - 1];
kcd->prev.vert = lh->v;
kcd->prev.bmface = NULL;
}
if (kcd->is_drag_hold) {
- lh = &kcd->linehits[kcd->totlinehit - 1];
+ KnifeLineHit *lh = &kcd->linehits[kcd->totlinehit - 1];
linehit_to_knifepos(&kcd->prev, lh);
}
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c
index f2cbef6e547..23deffe5b0d 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -1256,8 +1256,7 @@ static int edbm_select_similar_region_exec(bContext *C, wmOperator *op)
LinkData *link;
while ((link = BLI_pophead(&faces_regions))) {
BMFace *f, **faces = link->data;
- unsigned int i = 0;
- while ((f = faces[i++])) {
+ while ((f = *(faces++))) {
BM_face_select_set(bm, f, true);
}
MEM_freeN(faces);