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-02-05 11:12:46 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-05 11:12:46 +0400
commit1d21e2386e39a34a86772e4b6f19791c1635a601 (patch)
treeec94c703a04ac795083ab117a28dd7640bd89e23 /source/blender/editors/mesh/mesh_data.c
parentb0db9df701a1905ff8a337f0ae5384079fcba28d (diff)
ensure tessface's are available while sculpting.
Diffstat (limited to 'source/blender/editors/mesh/mesh_data.c')
-rw-r--r--source/blender/editors/mesh/mesh_data.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/source/blender/editors/mesh/mesh_data.c b/source/blender/editors/mesh/mesh_data.c
index 0ced2d99839..4c345f8e3d5 100644
--- a/source/blender/editors/mesh/mesh_data.c
+++ b/source/blender/editors/mesh/mesh_data.c
@@ -758,13 +758,8 @@ void ED_mesh_update(Mesh *mesh, bContext *C, int calc_edges)
if(calc_edges || (mesh->totpoly && mesh->totedge == 0))
BKE_mesh_calc_edges(mesh, calc_edges);
- mesh->totface = mesh_recalcTesselation(&mesh->fdata, &mesh->ldata, &mesh->pdata,
- mesh->mvert,
- mesh->totface, mesh->totloop, mesh->totpoly,
- /* calc normals right after, dont copy from polys here */
- FALSE);
-
- mesh_update_customdata_pointers(mesh, TRUE);
+ /* TODO, make this optional, we dont always want this! */
+ BKE_mesh_calc_tessface(mesh);
polyindex = CustomData_get_layer(&mesh->fdata, CD_POLYINDEX);
/* add a normals layer for tesselated faces, a tessface normal will