merge with/from trunk at r35190
[blender.git] / source / blender / blenloader / intern / writefile.c
index d2d6c2412cd2a21da3288e9f58a56cc5154ecb38..2f8feb9b9da79d4d12cd0f44570f5b8dcf3c28d3 100644 (file)
@@ -1117,16 +1117,16 @@ static void write_constraints(WriteData *wd, ListBase *conlist)
                                         of library blocks that implement this.*/
                                        IDP_WriteProperty(data->prop, wd);
                                }
-                                       break;
+                               break;
                                case CONSTRAINT_TYPE_SPLINEIK: 
                                {
                                        bSplineIKConstraint *data= (bSplineIKConstraint*)con->data;
                                        
                                        /* write points array */
                                        writedata(wd, DATA, sizeof(float)*(data->numpoints), data->points);
-                               }
-                                       break;
                        }
+                                       break;
+               }
                }
                
                /* Write the constraint */
@@ -1582,6 +1582,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 */