Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-07-05 11:27:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-07-05 11:31:44 +0300
commitafe7387be81ef04dc566a182ccadb2b1e739f809 (patch)
treec8ff7dd5a231c76f6462b834c66d57687dff8272
parentb29a8a5dfe3d6eb2fbbdecd0d5dffb3d709b9b91 (diff)
BMesh: remove redundant copy-on-write tagging
The evaluated meshes no longer store a copy of the edit-mesh so tagging when a BMesh operator fails can be removed.
-rw-r--r--source/blender/editors/mesh/editmesh_utils.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source/blender/editors/mesh/editmesh_utils.c b/source/blender/editors/mesh/editmesh_utils.c
index aa5cdafb05f..b384845513a 100644
--- a/source/blender/editors/mesh/editmesh_utils.c
+++ b/source/blender/editors/mesh/editmesh_utils.c
@@ -198,23 +198,6 @@ bool EDBM_op_finish(BMEditMesh *em, BMOperator *bmop, wmOperator *op, const bool
edbm_op_emcopy_restore_and_clear(em, bmop);
- /**
- * NOTE: we could pass in the mesh, however this is an exceptional case, allow a slow lookup.
- *
- * This is needed because the COW mesh makes a full copy of the #BMEditMesh
- * instead of sharing the pointer, tagging since this has been freed above,
- * the #BMEditMesh.emcopy needs to be flushed to the COW edit-mesh, see T55457.
- */
- {
- Main *bmain = G_MAIN;
- for (Mesh *mesh = bmain->meshes.first; mesh; mesh = mesh->id.next) {
- if (mesh->edit_mesh == em) {
- DEG_id_tag_update(&mesh->id, ID_RECALC_COPY_ON_WRITE);
- break;
- }
- }
- }
-
/* when copying, tessellation isn't to for faster copying,
* but means we need to re-tessellate here */
if (em->looptris == NULL) {