diff options
author | Hans Goudey <h.goudey@me.com> | 2022-11-04 22:19:52 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-11-04 22:19:52 +0300 |
commit | 10131a6f6238e259ce6732497e6eb045290ad3a3 (patch) | |
tree | 5d5bff3ce75aef97e7d718986332de10359833a0 /source/blender/blenkernel/intern/mesh_validate.cc | |
parent | 85ce4882981943b5a306090f03482bd5397c503d (diff) |
Cleanup: Mesh: Remove redundant edge render flag
Currently there are both "EDGERENDER" and "EDGEDRAW" flags, which are
almost always used together. Both are runtime data and not exposed to
RNA, used to skip drawing some edges after the subdivision surface
modifier. The render flag is a relic of the Blender internal renderer.
This commit removes the render flag and replaces its uses with the
draw flag.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_validate.cc')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_validate.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/mesh_validate.cc b/source/blender/blenkernel/intern/mesh_validate.cc index 9b140171912..5b4b09c13d5 100644 --- a/source/blender/blenkernel/intern/mesh_validate.cc +++ b/source/blender/blenkernel/intern/mesh_validate.cc @@ -1437,7 +1437,7 @@ static void mesh_calc_edges_mdata(const MVert * /*allvert*/, med->v1 = ed->v1; med->v2 = ed->v2; if (use_old == false || ed->is_draw) { - med->flag = ME_EDGEDRAW | ME_EDGERENDER; + med->flag = ME_EDGEDRAW; } if (ed->is_loose) { med->flag |= ME_LOOSEEDGE; @@ -1462,7 +1462,6 @@ static void mesh_calc_edges_mdata(const MVert * /*allvert*/, if (ed->is_loose) { med->flag |= ME_LOOSEEDGE; } - med->flag |= ME_EDGERENDER; MEM_freeN(edsort); @@ -1579,7 +1578,7 @@ void BKE_mesh_calc_edges_tessface(Mesh *mesh) BLI_edgesetIterator_step(ehi), i++, med++, index++) { BLI_edgesetIterator_getKey(ehi, &med->v1, &med->v2); - med->flag = ME_EDGEDRAW | ME_EDGERENDER; + med->flag = ME_EDGEDRAW; *index = ORIGINDEX_NONE; } BLI_edgesetIterator_free(ehi); |