fix [#32829] Crash when making linked Mesh with UV Map local
authorCampbell Barton <ideasman42@gmail.com>
Thu, 11 Oct 2012 00:56:34 +0000 (00:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 11 Oct 2012 00:56:34 +0000 (00:56 +0000)
source/blender/blenkernel/intern/mesh.c

index 1aaeebf5109cb8e15519157659e5668888912221..1936cc0ea99410302cdcb23d8a4bd462ba1586d8 100644 (file)
@@ -576,7 +576,7 @@ static void expand_local_mesh(Mesh *me)
 
                for (i = 0; i < me->pdata.totlayer; i++) {
                        if (me->pdata.layers[i].type == CD_MTEXPOLY) {
-                               MTexPoly *txface = (MTexPoly *)me->fdata.layers[i].data;
+                               MTexPoly *txface = (MTexPoly *)me->pdata.layers[i].data;
 
                                for (a = 0; a < me->totpoly; a++, txface++) {
                                        /* special case: ima always local immediately */