[Bf-blender-cvs] [d0c6e2b6776] blender2.8: Fix grid fill crash with copy on write

Sergey Sharybin noreply at git.blender.org
Fri May 4 16:23:33 CEST 2018


Commit: d0c6e2b6776b08764c630bc5c64ce5e9e7f903c2
Author: Sergey Sharybin
Date:   Fri May 4 16:23:00 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBd0c6e2b6776b08764c630bc5c64ce5e9e7f903c2

Fix grid fill crash with copy on write

===================================================================

M	source/blender/editors/mesh/editmesh_tools.c

===================================================================

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))



More information about the Bf-blender-cvs mailing list