alternate fix for r43166
authorCampbell Barton <ideasman42@gmail.com>
Thu, 5 Jan 2012 13:21:01 +0000 (13:21 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 5 Jan 2012 13:21:01 +0000 (13:21 +0000)
source/blender/bmesh/operators/mesh_conv.c

index 38c645eac9a6161510457787470ab5e36f06f137..eda4d5225ba8e4485f218cd3869ba1ffd20823d5 100644 (file)
@@ -473,6 +473,9 @@ void bmesh_to_mesh_exec(BMesh *bm, BMOperator *op)
        CustomData_add_layer(&me->edata, CD_MEDGE, CD_ASSIGN, medge, me->totedge);
        CustomData_add_layer(&me->ldata, CD_MLOOP, CD_ASSIGN, mloop, me->totloop);
        CustomData_add_layer(&me->pdata, CD_MPOLY, CD_ASSIGN, mpoly, me->totpoly);
+
+       /* this is called again, 'dotess' arg is used there */
+       mesh_update_customdata_pointers(me, 0);
        
        i = 0;
        BM_ITER(v, &iter, bm, BM_VERTS_OF_MESH, NULL) {