diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-12-24 14:32:43 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-24 14:40:07 +0300 |
commit | 2ba9572d9ee7bd028254578183b751ba5496b979 (patch) | |
tree | 69b725338e0da6b94c2cf83e26b47585c219e1ea /source/blender/blenkernel/intern/DerivedMesh.c | |
parent | 4c295ad47805acddfff2254f53c56644fbbb68b9 (diff) |
Cleanup: remove unused statvis code & struct members
This code has been moved into the draw manager.
Diffstat (limited to 'source/blender/blenkernel/intern/DerivedMesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/DerivedMesh.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/source/blender/blenkernel/intern/DerivedMesh.c b/source/blender/blenkernel/intern/DerivedMesh.c index 8be7a947a67..df4582267b5 100644 --- a/source/blender/blenkernel/intern/DerivedMesh.c +++ b/source/blender/blenkernel/intern/DerivedMesh.c @@ -789,14 +789,6 @@ static void add_orco_mesh(Object *ob, BMEditMesh *em, Mesh *mesh, Mesh *mesh_orc } } -static void editmesh_update_statvis_color(const Scene *scene, Object *ob) -{ - BMEditMesh *em = BKE_editmesh_from_object(ob); - Mesh *me = ob->data; - BKE_mesh_runtime_ensure_edit_data(me); - BKE_editmesh_statvis_calc(em, me->runtime.edit_data, &scene->toolsettings->statvis); -} - static void mesh_calc_modifier_final_normals(const Mesh *mesh_input, const CustomData_MeshMasks *final_datamask, const bool sculpt_dyntopo, @@ -1494,7 +1486,6 @@ static void editbmesh_calc_modifiers(struct Depsgraph *depsgraph, /* Modifier evaluation modes. */ const int required_mode = eModifierMode_Realtime | eModifierMode_Editmode; - const bool do_init_statvis = false; /* FIXME: use V3D_OVERLAY_EDIT_STATVIS. */ /* Modifier evaluation contexts for different types of modifiers. */ const ModifierEvalContext mectx = {depsgraph, ob, MOD_APPLY_USECACHE}; @@ -1703,22 +1694,12 @@ static void editbmesh_calc_modifiers(struct Depsgraph *depsgraph, else if (!deformed_verts && mesh_cage) { /* cage should already have up to date normals */ mesh_final = mesh_cage; - - /* In this case, we should never have weight-modifying modifiers in stack... */ - if (do_init_statvis) { - editmesh_update_statvis_color(scene, ob); - } } else { /* this is just a copy of the editmesh, no need to calc normals */ mesh_final = BKE_mesh_from_editmesh_with_coords_thin_wrap( em_input, &final_datamask, deformed_verts, mesh_input); deformed_verts = NULL; - - /* In this case, we should never have weight-modifying modifiers in stack... */ - if (do_init_statvis) { - editmesh_update_statvis_color(scene, ob); - } } if (deformed_verts) { |