diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-11-23 07:44:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-23 09:40:50 +0300 |
commit | 48b1656a6cce6fd7606a671eea9d0d17b67d7445 (patch) | |
tree | d95ed94cf1d1934c01de44364db7d53ca2262ff3 /source/blender/editors/mesh/editmesh_knife.c | |
parent | 6e4cb463c44ab57331cda7ded645b4faa573bbb3 (diff) |
Cleanup: shadowing (editors)
Diffstat (limited to 'source/blender/editors/mesh/editmesh_knife.c')
-rw-r--r-- | source/blender/editors/mesh/editmesh_knife.c | 8 |
1 files changed, 3 insertions, 5 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); } |