[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [45378] trunk/blender/source/blender/ editors/uvedit/uvedit_draw.c: Fix #30795: draw other objects in uv editor not working.
Brecht Van Lommel
brechtvanlommel at pandora.be
Tue Apr 3 19:27:10 CEST 2012
Revision: 45378
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=45378
Author: blendix
Date: 2012-04-03 17:26:57 +0000 (Tue, 03 Apr 2012)
Log Message:
-----------
Fix #30795: draw other objects in uv editor not working.
Modified Paths:
--------------
trunk/blender/source/blender/editors/uvedit/uvedit_draw.c
Modified: trunk/blender/source/blender/editors/uvedit/uvedit_draw.c
===================================================================
--- trunk/blender/source/blender/editors/uvedit/uvedit_draw.c 2012-04-03 17:19:58 UTC (rev 45377)
+++ trunk/blender/source/blender/editors/uvedit/uvedit_draw.c 2012-04-03 17:26:57 UTC (rev 45378)
@@ -383,14 +383,14 @@
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;
More information about the Bf-blender-cvs
mailing list