Speedup for skin modifier, avoid calculating normals many times

This commit is contained in:
Campbell Barton 2014-06-25 19:02:49 +10:00
parent 72f77dd69a
commit 92733179ae
Notes: blender-bot 2023-02-14 10:27:06 +01:00
Referenced by issue #42893, Skin Modifier - topology changes randomly when entering and exiting edit mode
Referenced by issue #41611, Skin modifier - Slow process with deactivated deform modifiers
Referenced by issue #40770, Blender 2.71 (rc2) crashes when a UV sphere is added
1 changed files with 5 additions and 0 deletions

View File

@ -1705,6 +1705,11 @@ static BMesh *build_skin(SkinNode *skin_nodes,
so.bm = BM_mesh_create(&bm_mesh_allocsize_default);
so.mat_nr = 0;
/* BMESH_TODO: bumping up the stack level (see MOD_array.c) */
BM_mesh_elem_toolflags_ensure(so.bm);
BMO_push(so.bm, NULL);
bmesh_edit_begin(so.bm, 0);
if (input_dvert)
BM_data_layer_add(so.bm, &so.bm->vdata, CD_MDEFORMVERT);