fix own error in bmesh -> mesh versioning
authorCampbell Barton <ideasman42@gmail.com>
Tue, 17 Jan 2012 04:54:57 +0000 (04:54 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 17 Jan 2012 04:54:57 +0000 (04:54 +0000)
source/blender/blenkernel/intern/mesh.c

index ef2249409f0deb2825e9716267ad0f03438f5fd6..189ce890c2f1cda2829e377335cca6aeb6b04386 100644 (file)
@@ -1589,7 +1589,7 @@ int mesh_mpoly_to_mface(struct CustomData *fdata, struct CustomData *ldata,
                                mesh_loops_to_mface_corners(fdata, ldata, pdata,
                                                            lindex, k, i, 3,
                                                            numTex, numCol, hasWCol);
-                               test_index_face(mf, fdata, totface, 3);
+                               test_index_face(mf, fdata, k, 3);
                        }
                        else {
                                /*sort loop indices to ensure winding is correct*/
@@ -1609,7 +1609,7 @@ int mesh_mpoly_to_mface(struct CustomData *fdata, struct CustomData *ldata,
                                mesh_loops_to_mface_corners(fdata, ldata, pdata,
                                                            lindex, k, i, 4,
                                                            numTex, numCol, hasWCol);
-                               test_index_face(mf, fdata, totface, 4);
+                               test_index_face(mf, fdata, k, 4);
                        }
 
                        mf->edcode= 0;