svn merge -r41779:41847 ^/trunk/blender
[blender.git] / source / blender / blenloader / intern / writefile.c
index 2bb70ce..df54299 100644 (file)
@@ -1694,6 +1694,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);
                        }
@@ -1701,6 +1702,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 */