From 85bdbd76537a239f2f146f6390ffd9963d25d87c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 1 Jul 2016 21:13:12 +1000 Subject: Sculpt: skip normal calculation entering dyntopo When no triangulation runs we can skip re-calculating normals. --- source/blender/editors/sculpt_paint/sculpt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index 67609d98683..37ec2d0f2dd 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -5013,7 +5013,9 @@ void sculpt_dynamic_topology_enable(bContext *C) BM_data_layer_add(ss->bm, &ss->bm->vdata, CD_PAINT_MASK); sculpt_dyntopo_node_layers_add(ss); /* make sure the data for existing faces are initialized */ - BM_mesh_normals_update(ss->bm); + if (me->totpoly != ss->bm->totface) { + BM_mesh_normals_update(ss->bm); + } /* Enable dynamic topology */ me->flag |= ME_SCULPT_DYNAMIC_TOPOLOGY; -- cgit v1.2.3