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-04-04 03:40:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-04 03:40:24 +0400
commit320aa33e653b5ea74719cf0a1525bffad307be53 (patch)
tree9163351ee04ce60f5988acd367d1841a61c1307a /source/blender/editors/uvedit/uvedit_draw.c
parentff14479983f0606678a9242f869f6b0fc5a78f99 (diff)
rename MPoly vars called mface or mf, to avoid confusion with MFace types.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_draw.c')
-rw-r--r--source/blender/editors/uvedit/uvedit_draw.c18
1 files changed, 9 insertions, 9 deletions
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; b<mface->totloop; 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; b<mface->totloop; b++, mloopuv++) {
+ mloopuv = me->mloopuv + mpoly->loopstart;
+ for (b=0; b<mpoly->totloop; b++, mloopuv++) {
glVertex2fv(mloopuv->uv);
}
glEnd();