diff options
Diffstat (limited to 'source/blender/blenloader/intern/writefile.c')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index b621a740b66..f41e9c91c8f 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -1790,9 +1790,6 @@ static void write_meshs(WriteData *wd, ListBase *idbase) /* restore */ mesh->mpoly = backup_mesh.mpoly; - mesh->totface = backup_mesh.totface; - mesh->totpoly = backup_mesh.totpoly; - mesh->totloop = backup_mesh.totloop; /* -- */ mesh->mface = backup_mesh.mface; /* -- */ @@ -1804,6 +1801,10 @@ static void write_meshs(WriteData *wd, ListBase *idbase) /* -- */ mesh->ldata= backup_mesh.ldata; /* -- */ + mesh->totface = backup_mesh.totface; + mesh->totpoly = backup_mesh.totpoly; + mesh->totloop = backup_mesh.totloop; + /* -- */ mesh_update_customdata_pointers(mesh, FALSE); /* --*/ mesh->edit_btmesh = backup_mesh.edit_btmesh; /* keep this after updating custom pointers */ |