From a3bb385ca0ba37bf1cdc1b74de9ce872b262fb95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Mon, 24 Sep 2018 23:18:02 +0200 Subject: Edit Mesh: Move Edit Mesh display settings to overlay's This makes the Edit Mesh display settings common to all objects. They can also be set differently per viewport. Modifying extra data (seams, sharp edges etc...) will no longer set them automaticaly visible. Bumping version because we need to force set all extra draw options for older files. --- source/blender/editors/mesh/mesh_data.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/blender/editors/mesh/mesh_data.c') diff --git a/source/blender/editors/mesh/mesh_data.c b/source/blender/editors/mesh/mesh_data.c index 3598262ecf4..438cbb8da91 100644 --- a/source/blender/editors/mesh/mesh_data.c +++ b/source/blender/editors/mesh/mesh_data.c @@ -798,8 +798,6 @@ static int mesh_customdata_custom_splitnormals_add_exec(bContext *C, wmOperator /* Tag edges as sharp according to smooth threshold if needed, to preserve autosmooth shading. */ if (me->flag & ME_AUTOSMOOTH) { BM_edges_sharp_from_angle_set(me->edit_btmesh->bm, me->smoothresh); - - me->drawflag |= ME_DRAWSHARP; } BM_data_layer_add(me->edit_btmesh->bm, data, CD_CUSTOMLOOPNORMAL); @@ -823,8 +821,6 @@ static int mesh_customdata_custom_splitnormals_add_exec(bContext *C, wmOperator me->smoothresh); MEM_freeN(polynors); - - me->drawflag |= ME_DRAWSHARP; } CustomData_add_layer(data, CD_CUSTOMLOOPNORMAL, CD_DEFAULT, NULL, me->totloop); -- cgit v1.2.3