svn merge ^/trunk/blender -r42116:42139
[blender.git] / source / blender / blenloader / intern / writefile.c
index c5e59959ddd2520b7c66638499a105a53b8d8d31..78efc686da472e793df069a908b4c306807802ba 100644 (file)
@@ -1695,6 +1695,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);
                        }
@@ -1702,6 +1703,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 */