remove unneeded re-tessellation converting metaball to mesh.
authorCampbell Barton <ideasman42@gmail.com>
Tue, 24 Jan 2012 00:52:26 +0000 (00:52 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 24 Jan 2012 00:52:26 +0000 (00:52 +0000)
source/blender/blenkernel/intern/mesh.c

index 9dbd7e3270c28acf0dd486632c1f1ad5952c2216..9ac44aa46513b866961c0383b41248c614f9d4b9 100644 (file)
@@ -1105,16 +1105,11 @@ void mball_to_mesh(ListBase *lb, Mesh *me)
                        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);
        }