Revision: 43441
          
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43441
Author:   campbellbarton
Date:     2012-01-17 04:57:51 +0000 (Tue, 17 Jan 2012)
Log Message:
-----------
fix for error freeing wrong num of MFace customdata when writing to legacy mesh 
format

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/blenloader/intern/writefile.c

Modified: branches/bmesh/blender/source/blender/blenloader/intern/writefile.c
===================================================================
--- branches/bmesh/blender/source/blender/blenloader/intern/writefile.c 
2012-01-17 04:54:57 UTC (rev 43440)
+++ branches/bmesh/blender/source/blender/blenloader/intern/writefile.c 
2012-01-17 04:57:51 UTC (rev 43441)
@@ -1790,9 +1790,6 @@
 
                                /* 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 @@
                                /* -- */
                                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 */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to