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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to