svn merge ^/trunk/blender -r41200:41226 .
[blender.git] / source / blender / blenloader / intern / writefile.c
index 45eaa6d0156383eb12c11a0ffcb85bfec36c7628..7c0ac79545b30828babd3a944221bce13cfd0506 100644 (file)
@@ -1667,6 +1667,7 @@ static void write_meshs(WriteData *wd, ListBase *idbase)
                                write_customdata(wd, &mesh->id, mesh->pv->totvert, &mesh->vdata, -1, 0);
                                write_customdata(wd, &mesh->id, mesh->pv->totedge, &mesh->edata,
                                        CD_MEDGE, mesh->totedge);
+                               /* BMESH_TODO: probably need to deal with polys here */
                                write_customdata(wd, &mesh->id, mesh->pv->totface, &mesh->fdata,
                                        CD_MFACE, mesh->totface);
                        }
@@ -1674,6 +1675,8 @@ static void write_meshs(WriteData *wd, ListBase *idbase)
                                write_customdata(wd, &mesh->id, mesh->totvert, &mesh->vdata, -1, 0);
                                write_customdata(wd, &mesh->id, mesh->totedge, &mesh->edata, -1, 0);
                                write_customdata(wd, &mesh->id, mesh->totface, &mesh->fdata, -1, 0);
+                               write_customdata(wd, &mesh->id, mesh->totloop, &mesh->ldata, -1, 0);
+                               write_customdata(wd, &mesh->id, mesh->totpoly, &mesh->pdata, -1, 0);
                        }
 
                        /* PMV data */