From 320aa33e653b5ea74719cf0a1525bffad307be53 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 3 Apr 2012 23:40:24 +0000 Subject: rename MPoly vars called mface or mf, to avoid confusion with MFace types. --- source/blender/editors/uvedit/uvedit_draw.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source/blender/editors/uvedit/uvedit_draw.c') diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c index 0a444bea084..2fe007a42e8 100644 --- a/source/blender/editors/uvedit/uvedit_draw.c +++ b/source/blender/editors/uvedit/uvedit_draw.c @@ -384,17 +384,17 @@ static void draw_uvs_other(Scene *scene, Object *obedit, Image *curimage) Mesh *me= ob->data; if (me->mtpoly) { - MPoly *mface= me->mpoly; - MTexPoly *mtpoly= me->mtpoly; + MPoly *mpoly = me->mpoly; + MTexPoly *mtpoly = me->mtpoly; MLoopUV *mloopuv; int a, b; - for (a=me->totpoly; a>0; a--, mtpoly++, mface++) { + for (a = me->totpoly; a > 0; a--, mtpoly++, mpoly++) { if (mtpoly->tpage == curimage) { glBegin(GL_LINE_LOOP); - mloopuv = me->mloopuv + mface->loopstart; - for (b=0; btotloop; b++, mloopuv++) { + mloopuv = me->mloopuv + mpoly->loopstart; + for (b = 0; b < mpoly->totloop; b++, mloopuv++) { glVertex2fv(mloopuv->uv); } glEnd(); @@ -416,17 +416,17 @@ static void draw_uvs_texpaint(SpaceImage *sima, Scene *scene, Object *ob) glColor3ub(112, 112, 112); if (me->mtface) { - MPoly *mface= me->mpoly; + MPoly *mpoly= me->mpoly; MTexPoly *tface= me->mtpoly; MLoopUV *mloopuv; int a, b; - for (a=me->totpoly; a>0; a--, tface++, mface++) { + for (a=me->totpoly; a>0; a--, tface++, mpoly++) { if (tface->tpage == curimage) { glBegin(GL_LINE_LOOP); - mloopuv = me->mloopuv + mface->loopstart; - for (b=0; btotloop; b++, mloopuv++) { + mloopuv = me->mloopuv + mpoly->loopstart; + for (b=0; btotloop; b++, mloopuv++) { glVertex2fv(mloopuv->uv); } glEnd(); -- cgit v1.2.3