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:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-05-04 17:23:00 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-05-04 17:23:20 +0300
commitd0c6e2b6776b08764c630bc5c64ce5e9e7f903c2 (patch)
tree7468ce504126e6b438f82cfb71f124df9b169663 /source/blender/editors/mesh/editmesh_tools.c
parent39050f6eee1927e36c88610a35f472390679c43a (diff)
Fix grid fill crash with copy on write
Diffstat (limited to 'source/blender/editors/mesh/editmesh_tools.c')
-rw-r--r--source/blender/editors/mesh/editmesh_tools.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_tools.c b/source/blender/editors/mesh/editmesh_tools.c
index 75a3d41ef18..c375e4c26de 100644
--- a/source/blender/editors/mesh/editmesh_tools.c
+++ b/source/blender/editors/mesh/editmesh_tools.c
@@ -4052,6 +4052,12 @@ static int edbm_fill_grid_exec(bContext *C, wmOperator *op)
BMO_op_exec(em->bm, &bmop);
+ /* NOTE: EDBM_op_finish() will change bmesh pointer inside of edit mesh,
+ * so need to tell evaluated objects to sync new bmesh pointer to their
+ * edit mesh structures.
+ */
+ DEG_id_tag_update(&obedit->id, 0);
+
/* cancel if nothing was done */
if ((totedge_orig == em->bm->totedge) &&
(totface_orig == em->bm->totface))