diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-03 21:26:57 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-04-03 21:26:57 +0400 |
commit | 51afa3b7c67e33f089da192d05be5ec1dd9969b6 (patch) | |
tree | 83906a232edbc41c8baf6a0aa9f9ac4a4860e3d5 /source/blender/editors/uvedit/uvedit_draw.c | |
parent | b7c6327d1fb94a867c067d576b75d951636d77c5 (diff) |
Fix #30795: draw other objects in uv editor not working.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_draw.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/uvedit/uvedit_draw.c b/source/blender/editors/uvedit/uvedit_draw.c index 4690f11d9af..0a444bea084 100644 --- a/source/blender/editors/uvedit/uvedit_draw.c +++ b/source/blender/editors/uvedit/uvedit_draw.c @@ -383,14 +383,14 @@ static void draw_uvs_other(Scene *scene, Object *obedit, Image *curimage) if ((ob->type==OB_MESH) && (ob!=obedit)) { Mesh *me= ob->data; - if (me->mtface) { + if (me->mtpoly) { MPoly *mface= me->mpoly; - MTexPoly *tface= me->mtpoly; + MTexPoly *mtpoly= me->mtpoly; MLoopUV *mloopuv; int a, b; - for (a=me->totpoly; a>0; a--, tface++, mface++) { - if (tface->tpage == curimage) { + for (a=me->totpoly; a>0; a--, mtpoly++, mface++) { + if (mtpoly->tpage == curimage) { glBegin(GL_LINE_LOOP); mloopuv = me->mloopuv + mface->loopstart; |