diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-04 17:23:00 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2018-05-04 17:23:20 +0300 |
commit | d0c6e2b6776b08764c630bc5c64ce5e9e7f903c2 (patch) | |
tree | 7468ce504126e6b438f82cfb71f124df9b169663 /source/blender | |
parent | 39050f6eee1927e36c88610a35f472390679c43a (diff) |
Fix grid fill crash with copy on write
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/mesh/editmesh_tools.c | 6 |
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)) |