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-30 02:13:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-01-30 02:13:08 +0400
commit096a16eaf651b9d63b924274575a3674da3920e0 (patch)
tree888c979f4c59f61ecfadd2101f2e5fa576732bc5 /source/blender/modifiers/intern/MOD_remesh.c
parent2ea8a3b8cafb5ff7e88b08927fd8f5670ce5017e (diff)
avoid an extra mesh copy in remesh modifier
Diffstat (limited to 'source/blender/modifiers/intern/MOD_remesh.c')
-rw-r--r--source/blender/modifiers/intern/MOD_remesh.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/source/blender/modifiers/intern/MOD_remesh.c b/source/blender/modifiers/intern/MOD_remesh.c
index ea508240813..b3e98143971 100644
--- a/source/blender/modifiers/intern/MOD_remesh.c
+++ b/source/blender/modifiers/intern/MOD_remesh.c
@@ -186,26 +186,11 @@ static DerivedMesh *applyModifier(ModifierData *md,
CDDM_lower_num_tessfaces(result, output->curface);
MEM_freeN(output);
- CDDM_calc_edges_tessface(result);
-
- /* BMESH_TODO - create polygons */
-
-#if 0
+ CDDM_tessfaces_to_faces(result); /* BMESH_TODO - create polygons */
+ CDDM_calc_edges(result);
CDDM_calc_normals(result);
return result;
-
-#else /* BMESH ONLY */
-
- dm = CDDM_copy_from_tessface(result); /*builds ngon faces from tess (mface) faces*/
- CDDM_calc_normals(dm);
- result->needsFree = 1;
- result->release(result);
-
- return dm;
-
-#endif
-
}
#else /* !WITH_MOD_REMESH */