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
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-10-18 15:28:39 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-10-18 15:28:39 +0400
commit861ba1bb5336cdabbe929adb5f54e95144857ebb (patch)
treefc91d867f3cdfa058989076eb0a1b7be09190280 /source
parent60713a1d61952df72b6c2f3158e001fb0afa5b63 (diff)
added missing call to re-tesselate on mesh conversion (Alt+C).
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/object/object_add.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c
index 6eeaaf838e0..8dcfa4ea4ae 100644
--- a/source/blender/editors/object/object_add.c
+++ b/source/blender/editors/object/object_add.c
@@ -1248,6 +1248,10 @@ static int convert_exec(bContext *C, wmOperator *op)
DM_to_mesh(dm, newob->data, newob);
+ /* re-tesselation doesn't happen automatic, calling like this is */
+ me= newob->data;
+ me->totface = mesh_recalcTesselation(&me->fdata, &me->ldata, &me->pdata, me->mvert, me->totface, me->totloop, me->totpoly, 0, 0);
+
dm->release(dm);
object_free_modifiers(newob); /* after derivedmesh calls! */
}