[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43656] branches/bmesh/blender/source/ blender/blenkernel/intern/mesh.c: remove unneeded re-tessellation converting metaball to mesh.

Campbell Barton ideasman42 at gmail.com
Tue Jan 24 01:52:33 CET 2012


Revision: 43656
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43656
Author:   campbellbarton
Date:     2012-01-24 00:52:26 +0000 (Tue, 24 Jan 2012)
Log Message:
-----------
remove unneeded re-tessellation converting metaball to mesh.

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/blenkernel/intern/mesh.c

Modified: branches/bmesh/blender/source/blender/blenkernel/intern/mesh.c
===================================================================
--- branches/bmesh/blender/source/blender/blenkernel/intern/mesh.c	2012-01-24 00:26:12 UTC (rev 43655)
+++ branches/bmesh/blender/source/blender/blenkernel/intern/mesh.c	2012-01-24 00:52:26 UTC (rev 43656)
@@ -1105,17 +1105,12 @@
 			index+= 4;
 		}
 
-		/* BMESH_TODO - why is this converting from MFaces to MPoly's then tesselating?
-		 * should just make mpolys */
-
 		make_edges(me, 0);	// all edges
-		convert_mfaces_to_mpolys(me);
 
-		me->totface = mesh_recalcTesselation(&me->fdata, &me->ldata, &me->pdata,
-		                                     me->mvert,
-		                                     me->totface, me->totloop, me->totpoly,
-		                                     TRUE);
 
+		/* BMESH_TODO - low priority, should make polygons instead */
+		convert_mfaces_to_mpolys(me);
+
 		mesh_update_customdata_pointers(me, TRUE);
 	}
 }



More information about the Bf-blender-cvs mailing list