Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-01-17 08:57:51 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-17 08:57:51 +0400
commitd641f8730a572534b30d632137a4532239259834 (patch)
tree6c393f0e7c148d723b22525a003404968843bec0 /source/blender/blenloader
parent72169b79a74d28b34aa84b98a734f057ac0b7423 (diff)
fix for error freeing wrong num of MFace customdata when writing to legacy mesh format
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/writefile.c7
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 */